Module Erubis::PrintOutEnhancer
In: erubis/enhancer.rb

use print statement instead of ‘_buf << …’

this is only for Eruby.

Methods

Public Instance methods

[Source]

# File erubis/enhancer.rb, line 103
    def add_expr_escaped(src, code)
      src << ' print ' << escaped_expr(code) << ';'
    end

[Source]

# File erubis/enhancer.rb, line 99
    def add_expr_literal(src, code)
      src << ' print((' << code << ').to_s);'
    end

[Source]

# File erubis/enhancer.rb, line 107
    def add_postamble(src)
      src << "\n" unless src[-1] == ?\n
    end

[Source]

# File erubis/enhancer.rb, line 92
    def add_preamble(src)
    end

[Source]

# File erubis/enhancer.rb, line 95
    def add_text(src, text)
      src << " print '" << escape_text(text) << "';" unless text.empty?
    end

[Validate]