Class: Option
- Inherits:
-
Object
- Object
- Option
- Defined in:
- lib/gpi/classes.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#param ⇒ Object
Returns the value of attribute param.
Instance Method Summary collapse
- #add_param(str) ⇒ Object
-
#initialize(name) ⇒ Option
constructor
A new instance of Option.
Constructor Details
#initialize(name) ⇒ Option
Returns a new instance of Option.
14 15 16 17 |
# File 'lib/gpi/classes.rb', line 14 def initialize(name) @name = name @param = Array.new end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/gpi/classes.rb', line 12 def name @name end |
#param ⇒ Object
Returns the value of attribute param.
12 13 14 |
# File 'lib/gpi/classes.rb', line 12 def param @param end |
Instance Method Details
#add_param(str) ⇒ Object
19 20 21 |
# File 'lib/gpi/classes.rb', line 19 def add_param(str) @param.push(str) end |