Class: Handlebars::Tree::Helper

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

Direct Known Subclasses

EscapedHelper

Instance Method Summary collapse

Instance Method Details

#_eval(context) ⇒ Object



57
58
59
60
61
62
63
64
# File 'lib/ruby-handlebars/tree.rb', line 57

def _eval(context)
  helper = context.get_helper(name.to_s)
  if helper.nil?
    context.get_helper("helperMissing").apply(context, String.new(name.to_s))
  else
    helper.apply(context, parameters, block, else_block)
  end
end