class HammerCLI::Options::Validators::DSL::AllConstraint
Public Class Methods
new(options, option_values, to_check)
click to toggle source
Calls superclass method
HammerCLI::Options::Validators::DSL::BaseConstraint.new
# File lib/hammer_cli/options/validators/dsl.rb, line 58 def initialize(options, option_values, to_check) super @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/options/validators/dsl.rb, line 64 def exist? @to_check.each do |opt| return false unless option_passed?(opt) end return true end