Class: Association
- Defined in:
- lib/carat-dev/association/association.rb
Overview
Association
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Association
constructor
A new instance of Association.
- #key ⇒ Object
- #value ⇒ Object
Methods inherited from Array
#[], #apply_snapshot, #at, #take_snapshot, #values_at
Constructor Details
#initialize(key, value) ⇒ Association
Returns a new instance of Association.
8 9 10 |
# File 'lib/carat-dev/association/association.rb', line 8 def initialize( key, value ) self.replace [ key, value ] end |