Class: FoxPage::Helpers::AppHelper
- Inherits:
-
Module
- Object
- Module
- FoxPage::Helpers::AppHelper
- Defined in:
- lib/fox_page/helpers/app_helper.rb
Overview
the AppHelper module builder injects the core FoxPage::Application instance to the method ‘app`
Instance Method Summary collapse
-
#initialize(app) ⇒ AppHelper
constructor
A new instance of AppHelper.
- #inspect ⇒ Object
Constructor Details
#initialize(app) ⇒ AppHelper
Returns a new instance of AppHelper.
8 9 10 11 12 13 |
# File 'lib/fox_page/helpers/app_helper.rb', line 8 def initialize(app) @__app = app define_method(:app) do app end end |
Instance Method Details
#inspect ⇒ Object
15 16 17 |
# File 'lib/fox_page/helpers/app_helper.rb', line 15 def inspect "#{self.class.name}(#{@__app.class})" end |