Class: PutsJSProcessor
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- PutsJSProcessor
- Defined in:
- lib/putsjs/putsjs_processor.rb
Instance Method Summary collapse
Instance Method Details
#evaluate(context, locals, &block) ⇒ Object
5 6 7 8 9 |
# File 'lib/putsjs/putsjs_processor.rb', line 5 def evaluate(context, locals, &block) data.gsub!(/\bputs\b/, "console.log") data end |
#prepare ⇒ Object
3 |
# File 'lib/putsjs/putsjs_processor.rb', line 3 def prepare; end |