Class: Template

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/templates/template.rb

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Template

Returns a new instance of Template.



4
5
6
7
8
# File 'lib/generators/templates/template.rb', line 4

def initialize(args = {})
  @automation = args[:automation]
  @name = args[:name]
  @framework = args[:framework]
end

Instance Method Details

#parsed_bodyObject



10
11
12
13
# File 'lib/generators/templates/template.rb', line 10

def parsed_body
  parsed_body = ERB.new body
  parsed_body.result(binding)
end