Method: Hyperstack::Internal::State::Mapper.observed?
- Defined in:
- lib/hyperstack/internal/state/mapper.rb
.observed?(object) ⇒ Boolean
Check to see if an object has been observed.
87 88 89 90 91 |
# File 'lib/hyperstack/internal/state/mapper.rb', line 87 def observed?(object) # we don't want to unnecessarily create a reference to ourselves # in the current_observers hash so we just look for the key. current_observers.key?(object)# && current_observers[object].any? end |