Class: FlameAppGenerator::Command::ProcessFiles::RenderVariables

Inherits:
ProjectGenerator::Command::ProcessFiles::RenderVariables
  • Object
show all
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

Instance Method Summary collapse

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_nameObject (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_nameObject (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