Class: Fife::Operations::Store
- Inherits:
-
Object
- Object
- Fife::Operations::Store
- Defined in:
- lib/fife/operations/store.rb
Instance Attribute Summary collapse
-
#storage ⇒ Object
readonly
Returns the value of attribute storage.
Instance Method Summary collapse
- #call(io) ⇒ Object
-
#initialize(storage) ⇒ Store
constructor
A new instance of Store.
Constructor Details
#initialize(storage) ⇒ Store
Returns a new instance of Store.
4 5 6 |
# File 'lib/fife/operations/store.rb', line 4 def initialize(storage) @storage = storage end |
Instance Attribute Details
#storage ⇒ Object (readonly)
Returns the value of attribute storage.
2 3 4 |
# File 'lib/fife/operations/store.rb', line 2 def storage @storage end |
Instance Method Details
#call(io) ⇒ Object
8 9 10 |
# File 'lib/fife/operations/store.rb', line 8 def call(io) storage.store(io) end |