Class: Autorake::Application::Option
- Inherits:
-
Object
- Object
- Autorake::Application::Option
- Defined in:
- lib/autorake/application.rb
Instance Attribute Summary collapse
-
#arg ⇒ Object
readonly
Returns the value of attribute arg.
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(*args) ⇒ Option
constructor
A new instance of Option.
Constructor Details
#initialize(*args) ⇒ Option
Returns a new instance of Option.
12 13 14 |
# File 'lib/autorake/application.rb', line 12 def initialize *args @desc, @arg, *@call = *args end |
Instance Attribute Details
#arg ⇒ Object (readonly)
Returns the value of attribute arg.
11 12 13 |
# File 'lib/autorake/application.rb', line 11 def arg @arg end |
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
11 12 13 |
# File 'lib/autorake/application.rb', line 11 def desc @desc end |
Class Method Details
.[](*args) ⇒ Object
10 |
# File 'lib/autorake/application.rb', line 10 def [] *args ; new *args ; end |
Instance Method Details
#call ⇒ Object
15 16 17 |
# File 'lib/autorake/application.rb', line 15 def call @call.dup end |