Class: Templatable::Dsl

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDsl

Returns a new instance of Dsl.



22
23
24
25
26
27
28
# File 'lib/templatable_dsl.rb', line 22

def initialize
  @templatable = Templatable::DslModel.new
  @templatable.output_fullpath = 'output_fullpath'
  @templatable.class_name = 'class_name'
  @templatable.template = 'TODO: set your template(ERB format)'
  @templatable.placeholders = []
end

Instance Attribute Details

#templatableObject

Returns the value of attribute templatable.



6
7
8
# File 'lib/templatable_dsl.rb', line 6

def templatable
  @templatable
end