class Flay
Public Instance Methods
Source
# File lib/flay_erb.rb, line 10 def process_erb file erb = File.read file ruby = Erubi.new(erb).src begin parser = option[:parser].new parser.process(ruby, file, option[:timeout]) rescue => e warn ruby if option[:verbose] raise e end end
Process erb and parse the result. Returns the sexp of the parsed ruby.