Class: RakeCommander::Options::Set

Inherits:
Object
  • Object
show all
Extended by:
Enumerable
Includes:
RakeCommander::Options
Defined in:
lib/rake-commander/options/set.rb

Class Method Summary collapse

Class Method Details

.each(&block) ⇒ Object



16
17
18
19
20
# File 'lib/rake-commander/options/set.rb', line 16

def each(&block)
  return to_enum(:each) unless block

  options.each(&block)
end

.name(value = :not_used) ⇒ Object

Name of the Options::Set



10
11
12
13
14
# File 'lib/rake-commander/options/set.rb', line 10

def name(value = :not_used)
  return @name if value == :not_used

  @name = value.to_sym
end