Class: ErbPreProcessor
- Inherits:
-
Object
- Object
- ErbPreProcessor
- Defined in:
- lib/smartgen_erb/pre_processor.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ ErbPreProcessor
constructor
A new instance of ErbPreProcessor.
- #process(body, metadata = {}) ⇒ Object
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 |