Class: Guide::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/guide/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.


15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/guide/configuration.rb', line 15

def initialize
  @asset_path_for_logo = ''
  @company_name = 'Your Awesome Company'
  @controller_class_to_inherit = 'ApplicationController'
  @default_layout_for_scenarios = 'layouts/guide/scenario/default'
  @default_javascripts_for_documents = []
  @default_javascripts_for_structures = []
  @default_stylesheets_for_documents = []
  @default_stylesheets_for_structures = []
  @guide_name = 'Your Awesome Guide'
  @helper_module_to_globally_include = 'Guide::ApplicationHelper::DefaultInclude'
  @local_variable_for_view_model = :view
  @supported_locales = { "English" => "en" }
end

Instance Attribute Details

#asset_path_for_logoObject

Returns the value of attribute asset_path_for_logo.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def 
  @asset_path_for_logo
end

#company_nameObject

Returns the value of attribute company_name.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def company_name
  @company_name
end

#controller_class_to_inheritObject

Returns the value of attribute controller_class_to_inherit.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def controller_class_to_inherit
  @controller_class_to_inherit
end

#default_javascripts_for_documentsObject

Returns the value of attribute default_javascripts_for_documents.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def default_javascripts_for_documents
  @default_javascripts_for_documents
end

#default_javascripts_for_structuresObject

Returns the value of attribute default_javascripts_for_structures.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def default_javascripts_for_structures
  @default_javascripts_for_structures
end

#default_layout_for_scenariosObject

Returns the value of attribute default_layout_for_scenarios.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def default_layout_for_scenarios
  @default_layout_for_scenarios
end

#default_stylesheets_for_documentsObject

Returns the value of attribute default_stylesheets_for_documents.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def default_stylesheets_for_documents
  @default_stylesheets_for_documents
end

#default_stylesheets_for_structuresObject

Returns the value of attribute default_stylesheets_for_structures.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def default_stylesheets_for_structures
  @default_stylesheets_for_structures
end

#guide_nameObject

Returns the value of attribute guide_name.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def guide_name
  @guide_name
end

#helper_module_to_globally_includeObject

Returns the value of attribute helper_module_to_globally_include.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def helper_module_to_globally_include
  @helper_module_to_globally_include
end

#local_variable_for_view_modelObject

Returns the value of attribute local_variable_for_view_model.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def local_variable_for_view_model
  @local_variable_for_view_model
end

#supported_localesObject

Returns the value of attribute supported_locales.


2
3
4
# File 'lib/guide/configuration.rb', line 2

def supported_locales
  @supported_locales
end