Module: Erubis::ArrayEnhancer
- Included in:
- ArrayEruby
- Defined in:
- lib/erubis/enhancer.rb
Overview
return array 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:
161 162 163 |
# File 'lib/erubis/enhancer.rb', line 161 def self.desc # :nodoc: "return array instead of string" end |
Instance Method Details
#add_postamble(src) ⇒ Object
169 170 171 172 |
# File 'lib/erubis/enhancer.rb', line 169 def add_postamble(src) src << "\n" unless src[-1] == ?\n src << "_buf\n" end |
#add_preamble(src) ⇒ Object
165 166 167 |
# File 'lib/erubis/enhancer.rb', line 165 def add_preamble(src) src << "_buf = [];" end |