Class: Handlebars::Tree::Replacement
- Inherits:
-
Object
- Object
- Handlebars::Tree::Replacement
- Defined in:
- lib/ruby-handlebars/tree.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#_eval(context) ⇒ Object
18 19 20 21 22 23 24 25 |
# 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 |