Class: Rag::Util::ERB

Inherits:
ERB
  • Object
show all
Defined in:
lib/rag/util/erb.rb

Instance Method Summary collapse

Instance Method Details

#result(bind = nil, locals = {}) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/rag/util/erb.rb', line 4

def result(bind=nil, locals={})
  bind ||= TOPLEVEL_BINDING
  if locals.empty?
    original_result bind
  else
    result_with_locals bind, locals
  end
end