Class: TemplateMapping
- Inherits:
-
Object
- Object
- TemplateMapping
- Defined in:
- lib/apollo_commons_ruby/TemplatesHelper.rb
Instance Method Summary collapse
- #create_hash ⇒ Object
- #create_mapping ⇒ Object
-
#initialize(template_name, template_path, template_mapping) ⇒ TemplateMapping
constructor
A new instance of TemplateMapping.
Constructor Details
#initialize(template_name, template_path, template_mapping) ⇒ TemplateMapping
Returns a new instance of TemplateMapping.
80 81 82 83 84 |
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 80 def initialize(template_name, template_path, template_mapping) @template_name = template_name @template_path = template_path @template_mapping = template_mapping end |
Instance Method Details
#create_hash ⇒ Object
86 87 88 89 90 91 92 |
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 86 def create_hash { "template_name"=> @template_name, "template_path"=> @template_path, "template_mapping"=> @template_mapping } end |
#create_mapping ⇒ Object
94 95 96 97 98 |
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 94 def create_mapping { @template_mapping => @template_name } end |