class Handlebars::Tree::Replacement

Public Instance Methods

_eval(context) click to toggle source
# File lib/ruby-handlebars/tree.rb, line 18
def _eval(context)
  helper = context.get_helper(item.to_s)
  if helper && (helper.arity == 1 || helper.arity == -2)
    helper.apply(context)
  else
    context.get(item.to_s)
  end
end