Class: EcoRake::Options::Set
- Inherits:
-
RakeCommander::Options::Set
- Object
- RakeCommander::Options::Set
- EcoRake::Options::Set
- Includes:
- EcoRake::Options
- Defined in:
- lib/eco-rake/options/set.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#parent ⇒ Object
readonly
banner ''.
Instance Method Summary collapse
-
#initialize(*args, _parent: nil) ⇒ Set
constructor
A new instance of Set.
- #name ⇒ Object
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
#parent ⇒ Object (readonly)
banner ''
7 8 9 |
# File 'lib/eco-rake/options/set.rb', line 7 def parent @parent end |
Instance Method Details
#name ⇒ Object
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 |