Class: FoxPage::Helpers::AppHelper

Inherits:
Module
  • Object
show all
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

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

#inspectObject



15
16
17
# File 'lib/fox_page/helpers/app_helper.rb', line 15

def inspect
  "#{self.class.name}(#{@__app.class})"
end