Methods

Included Modules

Class/Module Index [+]

Quicksearch

Erubis::PercentLineEnhancer

regards lines starting with '%' as program code

this is for compatibility to eruby and ERB.

this is language-independent.

Public Instance Methods

add_text(src, text) click to toggle source
# File lib/erubis/enhancer.rb, line 516
def add_text(src, text)
  unless @prefixrexp
    @prefixchar = '%'
    @prefixrexp = /^\%(.*?\r?\n)/
  end
  super(src, text)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.