Class: Toy::CardHyper
- Inherits:
-
Object
- Object
- Toy::CardHyper
- Defined in:
- lib/toy/dev/toy_card.rb
Overview
One ‘key=value` entry in the Hyper line.
add_hyper("D", "768") → contributes " D=768" to the Hyper line.
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ CardHyper
constructor
A new instance of CardHyper.
Constructor Details
#initialize(key, value) ⇒ CardHyper
Returns a new instance of CardHyper.
54 55 56 57 |
# File 'lib/toy/dev/toy_card.rb', line 54 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
52 53 54 |
# File 'lib/toy/dev/toy_card.rb', line 52 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
52 53 54 |
# File 'lib/toy/dev/toy_card.rb', line 52 def value @value end |