Class: Fife::Operations::Store

Inherits:
Object
  • Object
show all
Defined in:
lib/fife/operations/store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#storageObject (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