Class: Riddl::Option
- Inherits:
-
Object
- Object
- Riddl::Option
- Defined in:
- lib/ruby/riddl/option.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Option
constructor
A new instance of Option.
Constructor Details
#initialize(name, value) ⇒ Option
Returns a new instance of Option.
4 5 6 7 |
# File 'lib/ruby/riddl/option.rb', line 4 def initialize(name,value) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ruby/riddl/option.rb', line 3 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/ruby/riddl/option.rb', line 3 def value @value end |