Class: Handlebars::Tree::PartialWithArgs
- Inherits:
-
Object
- Object
- Handlebars::Tree::PartialWithArgs
- Defined in:
- lib/ruby-handlebars/tree.rb
Instance Method Summary collapse
Instance Method Details
#_eval(context) ⇒ Object
82 83 84 85 86 87 |
# File 'lib/ruby-handlebars/tree.rb', line 82 def _eval(context) [arguments].flatten.map(&:values).map do |vals| context.add_item vals.first.to_s, vals.last._eval(context) end context.get_partial(partial_name.to_s).call_with_context(context) end |