Class: Reactive::Disposable::Wrapper
- Inherits:
-
Object
- Object
- Reactive::Disposable::Wrapper
- Defined in:
- lib/rrx.rb
Instance Attribute Summary collapse
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target = nil, parent = nil) ⇒ Wrapper
constructor
A new instance of Wrapper.
- #unwrap ⇒ Object
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
#target ⇒ Object
Returns the value of attribute target.
35 36 37 |
# File 'lib/rrx.rb', line 35 def target @target end |
Instance Method Details
#unwrap ⇒ Object
46 47 48 |
# File 'lib/rrx.rb', line 46 def unwrap self.target = nil #return previous target? end |