Method: Rodbot::Generator#initialize

Defined in:
lib/rodbot/generator.rb

#initialize(templates_path) ⇒ Generator

Returns a new instance of Generator.

Parameters:

  • templates_path (Pathname)

    root path of the templates to generate from

[View source]

33
34
35
36
37
# File 'lib/rodbot/generator.rb', line 33

def initialize(templates_path)
  @templates_path = templates_path
  @helpers_binding = Helpers.new.instance_eval('binding')
  @pastel = Pastel.new
end