module FoxycartHelpers

Constants

LISTENERS
VERSION

Attributes

configuration[RW]

Public Class Methods

configure() { |configuration| ... } click to toggle source
# File lib/foxycart_helpers/configuration.rb, line 11
def self.configure
  yield(configuration)
end
propagate(event) click to toggle source
# File lib/foxycart_helpers/listeners.rb, line 8
def self.propagate(event)
  LISTENERS.each {|block| block.call event}
end
subscribe(&block) click to toggle source
# File lib/foxycart_helpers/listeners.rb, line 4
def self.subscribe(&block)
  LISTENERS << block
end