Class: KCommercial::Resources::FileGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/KCommercialPipeline/core/resource/file_generator.rb,
lib/KCommercialPipeline/core/resource/code_generator/file_generator.rb

Overview

Generator an code file

Instance Method Summary collapse

Constructor Details

#initialize(template_path) ⇒ FileGenerator

initialize a new file generator

Parameters:

  • template_path (Pathname)

    the template file path, it may be an erb file.



7
8
9
# File 'lib/KCommercialPipeline/core/resource/file_generator.rb', line 7

def initialize(template_path)
  @template_path = template_path
end

Instance Method Details

#generate(path, bind_params) ⇒ Object



11
12
13
# File 'lib/KCommercialPipeline/core/resource/file_generator.rb', line 11

def generate(path, bind_params)

end