Class: Respect::Rails::ApplicationInfo

Inherits:
EngineInfo
  • Object
show all
Includes:
DocHelper
Defined in:
lib/respect/rails/application_info.rb

Instance Attribute Summary (collapse)

Attributes inherited from EngineInfo

#engine_class, #routes

Instance Method Summary (collapse)

Methods inherited from EngineInfo

#<=>

Constructor Details

- (ApplicationInfo) initialize(app_class = ::Rails.application.class)

A new instance of ApplicationInfo



6
7
8
9
10
11
12
# File 'lib/respect/rails/application_info.rb', line 6

def initialize(app_class = ::Rails.application.class)
  super(app_class)
  unless app_class < ::Rails::Application
    raise "'#{app_class}' must be an ancestor of ::Rails::Application."
  end
  @app_class = app_class
end

Instance Attribute Details

- (Object) app_class (readonly)

Returns the value of attribute app_class



14
15
16
# File 'lib/respect/rails/application_info.rb', line 14

def app_class
  @app_class
end

Instance Method Details

- (Object) documentation



20
21
22
# File 'lib/respect/rails/application_info.rb', line 20

def documentation
  Respect::Rails::Engine.app_documentation
end

- (Object) name



16
17
18
# File 'lib/respect/rails/application_info.rb', line 16

def name
  Engine.doc_app_name
end