Module: FoxycartHelpers
- Defined in:
- lib/foxycart_helpers/link.rb,
lib/foxycart_helpers/railtie.rb,
lib/foxycart_helpers/version.rb,
lib/foxycart_helpers/datafeed.rb,
lib/foxycart_helpers/listeners.rb,
lib/foxycart_helpers/javascript.rb,
lib/foxycart_helpers/middleware.rb,
lib/foxycart_helpers/configuration.rb,
lib/foxycart_helpers/rails_view_helpers.rb,
lib/foxycart_helpers/product_verification.rb
Defined Under Namespace
Modules: RailsViewHelpers
Classes: Configuration, Datafeed, Javascript, Link, Middleware, ProductVerification, Railtie
Constant Summary
collapse
- VERSION =
'1.0.1'
- LISTENERS =
Array.new
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
4
5
6
|
# File 'lib/foxycart_helpers/configuration.rb', line 4
def configuration
@configuration
end
|
Class Method Details
11
12
13
|
# File 'lib/foxycart_helpers/configuration.rb', line 11
def self.configure
yield(configuration)
end
|
.propagate(event) ⇒ Object
8
9
10
|
# File 'lib/foxycart_helpers/listeners.rb', line 8
def self.propagate(event)
LISTENERS.each {|block| block.call event}
end
|
.subscribe(&block) ⇒ Object
4
5
6
|
# File 'lib/foxycart_helpers/listeners.rb', line 4
def self.subscribe(&block)
LISTENERS << block
end
|