Class: Pdi::Spoon::Options::Param
- Defined in:
- lib/pdi/spoon/options/param.rb
Overview
This class sub-classes Arg and knows how to form param key-value pair arguments.
Constant Summary collapse
- EQUALS =
'='
Constants inherited from Arg
Arg::COLON, Arg::DOUBLE_QUOTE, Arg::EMPTY, Arg::HYPHEN, Arg::SPACE
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value = '') ⇒ Param
constructor
A new instance of Param.
Methods inherited from Arg
Constructor Details
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
19 20 21 |
# File 'lib/pdi/spoon/options/param.rb', line 19 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
19 20 21 |
# File 'lib/pdi/spoon/options/param.rb', line 19 def value @value end |