Class: Handlebars::Tree::AsHelper
- Inherits:
-
Object
- Object
- Handlebars::Tree::AsHelper
- Defined in:
- lib/ruby-handlebars/tree.rb
Instance Method Summary collapse
Instance Method Details
#_eval(context) ⇒ Object
62 63 64 65 66 67 68 69 |
# File 'lib/ruby-handlebars/tree.rb', line 62 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 |