Class: CLI::Arguments

Inherits:
Array
  • Object
show all
Defined in:
lib/cli/arguments.rb

Instance Method Summary collapse

Instance Method Details

#has?(argument_dsl) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/cli/arguments.rb', line 2

def has?(argument_dsl)
	self.find{|a| a.name == argument_dsl.name}
end

#mandatoryObject



6
7
8
# File 'lib/cli/arguments.rb', line 6

def mandatory
	select{|a| a.mandatory?}
end

#multiaryObject



10
11
12
# File 'lib/cli/arguments.rb', line 10

def multiary
	select{|a| a.multiary?}
end