Class: Store::Digest::Object::IOWrapper

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/store/digest/object.rb

Overview

Proxy IO instance that has a backreference to the store object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, io) ⇒ IOWrapper

Returns a new instance of IOWrapper.



80
81
82
83
# File 'lib/store/digest/object.rb', line 80

def initialize object, io
  @object = object
  @io     = io
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



85
86
87
# File 'lib/store/digest/object.rb', line 85

def object
  @object
end