Class: Xfabricator::TemplateFileDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/xfabricator/template_definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_templateObject (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_pathObject (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_fileObject (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