Class: Xfabricator::TemplateFileDefinition
- Inherits:
-
Object
- Object
- Xfabricator::TemplateFileDefinition
- Defined in:
- lib/xfabricator/template_definition.rb
Instance Attribute Summary collapse
-
#output_name_template ⇒ Object
readonly
Returns the value of attribute output_name_template.
-
#sub_path ⇒ Object
readonly
Returns the value of attribute sub_path.
-
#template_file ⇒ Object
readonly
Returns the value of attribute template_file.
Instance Method Summary collapse
-
#initialize(template_file, output_name_template, sub_path = '') ⇒ TemplateFileDefinition
constructor
A new instance of TemplateFileDefinition.
Constructor Details
#initialize(template_file, output_name_template, sub_path = '') ⇒ TemplateFileDefinition
Returns a new instance of TemplateFileDefinition.
49 50 51 52 53 |
# File 'lib/xfabricator/template_definition.rb', line 49 def initialize(template_file, output_name_template, sub_path = '') @output_name_template = output_name_template @template_file = template_file @sub_path = sub_path end |
Instance Attribute Details
#output_name_template ⇒ Object (readonly)
Returns the value of attribute output_name_template.
45 46 47 |
# File 'lib/xfabricator/template_definition.rb', line 45 def output_name_template @output_name_template end |
#sub_path ⇒ Object (readonly)
Returns the value of attribute sub_path.
47 48 49 |
# File 'lib/xfabricator/template_definition.rb', line 47 def sub_path @sub_path end |
#template_file ⇒ Object (readonly)
Returns the value of attribute template_file.
46 47 48 |
# File 'lib/xfabricator/template_definition.rb', line 46 def template_file @template_file end |