Class: PutsJSProcessor

Inherits:
Tilt::Template
  • Object
show all
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

#prepareObject



3
# File 'lib/putsjs/putsjs_processor.rb', line 3

def prepare; end