Class: Handlebars::Tree::AsHelper

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

Instance Method Summary collapse

Instance Method Details

#_eval(context) ⇒ Object



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

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