Class: Unbreakable::Observers::Observer
- Inherits:
-
Object
- Object
- Unbreakable::Observers::Observer
- Defined in:
- lib/unbreakable/observers/observer.rb
Overview
Direct Known Subclasses
Instance Attribute Summary collapse
-
#observed ⇒ Object
readonly
Returns the value of attribute observed.
Instance Method Summary collapse
-
#initialize(observed) ⇒ Observer
constructor
A new instance of Observer.
- #update(method, *args) ⇒ void
Constructor Details
#initialize(observed) ⇒ Observer
Returns a new instance of Observer.
15 16 17 |
# File 'lib/unbreakable/observers/observer.rb', line 15 def initialize(observed) @observed = observed end |
Instance Attribute Details
#observed ⇒ Object (readonly)
Returns the value of attribute observed.
12 13 14 |
# File 'lib/unbreakable/observers/observer.rb', line 12 def observed @observed end |
Instance Method Details
#update(method, *args) ⇒ void
This method returns an undefined value.
22 23 24 |
# File 'lib/unbreakable/observers/observer.rb', line 22 def update(method, *args) raise NotImplementedError end |