Class: FlameAppGenerator::Command::ProcessFiles::RenderVariables
- Inherits:
-
ProjectGenerator::Command::ProcessFiles::RenderVariables
- Object
- ProjectGenerator::Command::ProcessFiles::RenderVariables
- FlameAppGenerator::Command::ProcessFiles::RenderVariables
- Defined in:
- lib/flame_app_generator/command/process_files/render_variables.rb
Overview
Class for a single object which should be a scope in render
Instance Attribute Summary collapse
-
#domain_name ⇒ Object
readonly
Returns the value of attribute domain_name.
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
Instance Method Summary collapse
-
#initialize(name, project_name, domain, indentation) ⇒ RenderVariables
constructor
A new instance of RenderVariables.
Constructor Details
#initialize(name, project_name, domain, indentation) ⇒ RenderVariables
Returns a new instance of RenderVariables.
20 21 22 23 24 25 26 |
# File 'lib/flame_app_generator/command/process_files/render_variables.rb', line 20 def initialize(name, project_name, domain, indentation) super(name, indentation) @module_name = project_name || app_name.camelize @domain_name = domain || "#{@module_name.downcase}.com" end |
Instance Attribute Details
#domain_name ⇒ Object (readonly)
Returns the value of attribute domain_name.
16 17 18 |
# File 'lib/flame_app_generator/command/process_files/render_variables.rb', line 16 def domain_name @domain_name end |
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name.
16 17 18 |
# File 'lib/flame_app_generator/command/process_files/render_variables.rb', line 16 def module_name @module_name end |