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



51
52
53
54
55
56
57
58
# File 'lib/ruby-handlebars/tree.rb', line 51

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