module Erubis::NoTextEnhancer
remove text and leave code, especially useful when debugging.
ex.
$ erubis -s -E NoText file.eruby | more
this is language independent.
Public Instance Methods
add_text(src, text)
click to toggle source
# File lib/erubis/enhancer.rb, line 282 def add_text(src, text) src << ("\n" * text.count("\n")) if text[-1] != ?\n text =~ /^(.*?)\z/ src << (' ' * $1.length) end end