Module: Erubis::StdoutEnhancer
- Included in:
- StdoutEruby, StdoutSimplifiedEruby
- Defined in:
- lib/erubis/enhancer.rb
Overview
use $stdout instead of string
this is only for Eruby.
Class Method Summary collapse
-
.desc ⇒ Object
:nodoc:.
Instance Method Summary collapse
Class Method Details
.desc ⇒ Object
:nodoc:
65 66 67 |
# File 'lib/erubis/enhancer.rb', line 65 def self.desc # :nodoc: "use $stdout instead of array buffer or string buffer" end |
Instance Method Details
#add_postamble(src) ⇒ Object
73 74 75 |
# File 'lib/erubis/enhancer.rb', line 73 def add_postamble(src) src << "\n''\n" end |
#add_preamble(src) ⇒ Object
69 70 71 |
# File 'lib/erubis/enhancer.rb', line 69 def add_preamble(src) src << "#{@bufvar} = $stdout;" end |