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 call_with_one_argument_possible?(helper) helper.apply(context) else context.get(item.to_s) end end |