Module: StateInspector::Observers::Observer

Included in:
InternalObserver, InternalObserver::InternalObserverInstance, NullObserver, SessionLoggerObserver
Defined in:
lib/state_inspector/observers/observer.rb

Instance Method Summary collapse

Instance Method Details

#displayObject



8
9
10
# File 'lib/state_inspector/observers/observer.rb', line 8

def display
  values.join " "
end

#purgeObject



16
17
18
# File 'lib/state_inspector/observers/observer.rb', line 16

def purge
  @values = []
end

#update(*vals) ⇒ Object



4
5
6
# File 'lib/state_inspector/observers/observer.rb', line 4

def update *vals
  values() << vals
end

#valuesObject



12
13
14
# File 'lib/state_inspector/observers/observer.rb', line 12

def values
  @values ||= []
end