Class: Arbre::Rails::TemplateHandler
- Inherits:
-
Object
- Object
- Arbre::Rails::TemplateHandler
- Defined in:
- lib/arbre/rails/template_handler.rb
Instance Method Summary collapse
Instance Method Details
#call(template, source = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/arbre/rails/template_handler.rb', line 5 def call(template, source = nil) source = template.source unless source <<-END Arbre::Context.new(assigns, self) { #{source} }.to_s END end |