Class: ErbPreProcessor

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

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ ErbPreProcessor

Returns a new instance of ErbPreProcessor.



3
4
# File 'lib/smartgen_erb/pre_processor.rb', line 3

def initialize(opts={})
end

Instance Method Details

#process(body, metadata = {}) ⇒ Object



6
7
8
9
10
# File 'lib/smartgen_erb/pre_processor.rb', line 6

def process(body, ={})
   = Smartgen::ObjectHash.new()

  ERB.new(body).result(binding)
end