class HammerCLI::Validator::AllConstraint
Public Class Methods
new(options, to_check)
click to toggle source
Calls superclass method
HammerCLI::Validator::BaseConstraint.new
# File lib/hammer_cli/validator.rb, line 70 def initialize(options, to_check) super(options, to_check) @rejected_msg = _("You can't set all options %s at one time") @required_msg = _("Options %s are required") end
Public Instance Methods
exist?()
click to toggle source
# File lib/hammer_cli/validator.rb, line 76 def exist? @to_check.each do |opt| return false unless option_passed?(opt) end return true end