Class: ERB
Instance Method Summary collapse
- #original_result ⇒ Object
-
#result(bind = nil, locals = {}) ⇒ Object
add locals support.
Instance Method Details
#original_result ⇒ Object
4 |
# File 'lib/tagen/erb.rb', line 4 alias original_result result |
#result(bind = nil, locals = {}) ⇒ Object
add locals support
12 13 14 15 16 17 18 19 |
# File 'lib/tagen/erb.rb', line 12 def result bind=nil, locals={} bind ||= TOPLEVEL_BINDING if locals.empty? original_result bind else result_with_locals bind, locals end end |