Sha256: 3fa600521a91f922e16aa7ca802e562a4073e3d9eb35c36e27a070c6525d2998

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

module Bushido
  class EventObserver
    attr_accessor :params

    def self.inherited(klass)
      if Bushido::Platform.on_bushido?
        Bushido::Data.add_observer(klass.new)
      else
      end
    end

    def initialize
      @params ||= {}
    end

    def params
      @params
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bushido-0.0.36 lib/bushido/event_observer.rb