Class: SyncHash
Defined Under Namespace
Instance Attribute Summary collapse
-
#delegate ⇒ Object
readonly
Returns the value of attribute delegate.
Instance Method Summary collapse
-
#initialize(delegate = nil) ⇒ SyncHash
constructor
A new instance of SyncHash.
Methods included from DupReplaceSnapshotMixin
#restore_snapshot, #take_snapshot
Constructor Details
#initialize(delegate = nil) ⇒ SyncHash
Returns a new instance of SyncHash.
59 60 61 62 63 64 65 66 67 |
# File 'lib/mega/synchash.rb', line 59 def initialize(delegate=nil) @delegate = delegate @sync = ::Sync.new if delegate self.extend Delegator else self.extend Inheritor end end |
Instance Attribute Details
#delegate ⇒ Object (readonly)
Returns the value of attribute delegate.
57 58 59 |
# File 'lib/mega/synchash.rb', line 57 def delegate @delegate end |