Class: Handlebars::Tree::Replacement

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-handlebars/tree.rb

Direct Known Subclasses

EscapedReplacement

Instance Method Summary collapse

Instance Method Details

#_eval(context) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/ruby-handlebars/tree.rb', line 16

def _eval(context)
  if context.get_helper(item.to_s).nil?
    context.get(item.to_s)
  else
    context.get_helper(item.to_s).apply(context)
  end
end