Sha256: 679f22530049ddfe210ae37e2d9daeb5390b1f94cbb471a721777ef201701c75

Contents?: true

Size: 208 Bytes

Versions: 2

Compression:

Stored size: 208 Bytes

Contents

require 'observer'

module Frappuccino
  module Source
    def self.extended(object)
      object.extend(Observable)
    end

    def emit(value)
      changed
      notify_observers(value)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
frappuccino-0.3.0 lib/frappuccino/source.rb
frappuccino-0.2.0 lib/frappuccino/source.rb