Class: Jinx::Writable
- Inherits:
-
Associative
- Object
- Associative
- Jinx::Writable
- Defined in:
- lib/jinx/helpers/associative.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize(base, &writer) ⇒ Writable
constructor
A new instance of Writable.
Methods inherited from Associative
Constructor Details
#initialize(base, &writer) ⇒ Writable
Returns a new instance of Writable.
28 29 30 31 |
# File 'lib/jinx/helpers/associative.rb', line 28 def initialize(base, &writer) @base = base @writer = writer end |