# File lib/hammer_cli/validator.rb, line 98 def initialize(options, to_check) super(options, to_check) @rejected_msg = _("You can't set any of options %s.") @required_msg = _("At least one of options %s is required.") end
# File lib/hammer_cli/validator.rb, line 104 def exist? @to_check.each do |opt| return true if option_passed?(opt) end return @to_check.empty? end