Class: Templatable::Dsl
- Inherits:
-
Object
- Object
- Templatable::Dsl
- Defined in:
- lib/templatable_dsl.rb
Instance Attribute Summary collapse
-
#templatable ⇒ Object
Returns the value of attribute templatable.
Instance Method Summary collapse
-
#initialize ⇒ Dsl
constructor
A new instance of Dsl.
Constructor Details
#initialize ⇒ Dsl
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
#templatable ⇒ Object
Returns the value of attribute templatable.
6 7 8 |
# File 'lib/templatable_dsl.rb', line 6 def templatable @templatable end |