Class: EcoRake::Options::Set

Inherits:
RakeCommander::Options::Set
  • Object
show all
Includes:
EcoRake::Options
Defined in:
lib/eco-rake/options/set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, _parent: nil) ⇒ Set

Returns a new instance of Set.



9
10
11
12
# File 'lib/eco-rake/options/set.rb', line 9

def initialize(*args, _parent: nil)
  @parent = _parent
  super(*args)
end

Instance Attribute Details

#parentObject (readonly)

banner ''



7
8
9
# File 'lib/eco-rake/options/set.rb', line 7

def parent
  @parent
end

Instance Method Details

#nameObject



14
15
16
17
18
# File 'lib/eco-rake/options/set.rb', line 14

def name
  self.class.name.tap do |nm|
    raise ArgumentError, "Class #{self.class}, should have a name defined" unless nm
  end
end