Class: Reactive::Disposable::Wrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/rrx.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target = nil, parent = nil) ⇒ Wrapper

Returns a new instance of Wrapper.



37
38
39
40
# File 'lib/rrx.rb', line 37

def initialize(target = nil, parent = nil)
  @parent = AmbivalentRef.create(parent)
  self.target = target
end

Instance Attribute Details

#targetObject

Returns the value of attribute target.



35
36
37
# File 'lib/rrx.rb', line 35

def target
  @target
end

Instance Method Details

#unwrapObject



46
47
48
# File 'lib/rrx.rb', line 46

def unwrap
  self.target = nil #return previous target?
end