Sha256: 1a7f900ebc5c136c9c82ee0d82e1e45a454f6db13a70a0c6f7e57f115239f321

Contents?: true

Size: 376 Bytes

Versions: 9

Compression:

Stored size: 376 Bytes

Contents

require "cascade/statistics"

module Cascade
  module StatisticsCollectible
    module InstanceMethods
      def statistics
        @statistics ||= Statistics.instance
      end
    end

    def self.included(receiver)
      receiver.extend Forwardable
      receiver.send :include, InstanceMethods
      receiver.def_delegator :statistics, :register_action
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cascade-rb-0.2.3 lib/cascade/concerns/statistics_collectible.rb
cascade-rb-0.2.2 lib/cascade/concerns/statistics_collectible.rb
cascade-rb-0.2.1 lib/cascade/concerns/statistics_collectible.rb
cascade-rb-0.2.0 lib/cascade/concerns/statistics_collectible.rb
cascade-rb-0.1.5 lib/cascade/concerns/statistics_collectible.rb
cascade-rb-0.1.4 lib/cascade/concerns/statistics_collectible.rb
cascade-rb-0.1.2 lib/cascade/concerns/statistics_collectible.rb
cascade-rb-0.1.1 lib/cascade/concerns/statistics_collectible.rb
cascade-rb-0.1.0 lib/cascade/concerns/statistics_collectible.rb