Sha256: 5683311451c8a9e72c915125f417fd5ecbb034b815143acec0cdbc340eb83503

Contents?: true

Size: 289 Bytes

Versions: 10

Compression:

Stored size: 289 Bytes

Contents

module StateInspector
  module Observers
    module Observer
      def update *vals
        values() << vals
      end

      def display
        values.join " "
      end

      def values
        @values ||= []
      end

      def purge
        @values = []
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
state_inspector-1.0.5 lib/state_inspector/observers/observer.rb
state_inspector-1.0.4 lib/state_inspector/observers/observer.rb
state_inspector-1.0.3 lib/state_inspector/observers/observer.rb
state_inspector-1.0.2 lib/state_inspector/observers/observer.rb
state_inspector-1.0.1 lib/state_inspector/observers/observer.rb
state_inspector-1.0.0 lib/state_inspector/observers/observer.rb
state_inspector-1.0.0.rc1 lib/state_inspector/observers/observer.rb
state_inspector-0.8.2 lib/state_inspector/observers/observer.rb
state_inspector-0.8.1 lib/state_inspector/observers/observer.rb
state_inspector-0.8.0 lib/state_inspector/observers/observer.rb