mrblib/erubi.rb
# Add raw text to the template.  Modifies argument if argument is mutable as a memory optimization.
# Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
Add raw text to the template.  Modifies argument if argument is mutable as a memory optimization.
Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
Add raw text to the template . Modifies argument if argument is mutable as a memory optimization . Must be called with a string cannot be called with nil ( Rails ' s subclass depends on it ) .
def add_text(text)
      return if text.empty?
      if text.frozen?
        text = text.gsub(/['\\]/, '\\\\\&')
      else
        text.gsub!(/['\\]/, '\\\\\&')
      end
      @src << " " << @bufvar << " << '" << text << TEXT_END
    end
def add_text ( text ) return if text . empty? if text . frozen? text = text . gsub ( / [' \\ ] / , '\\\\\&' ) else text . gsub! ( / [' \\ ] / , '\\\\\&' ) end @src << " " << @bufvar << " << '" << text << TEXT_END end
Add raw text to the template.
Add raw text to the template .
text
<not_specific>