Class: Ox::Builder::ActionView::TemplateHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/ox/builder/action_view/template_handler.rb

Instance Method Summary collapse

Instance Method Details

#call(template) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/ox/builder/action_view/template_handler.rb', line 11

def call(template)
  "    xml = ::Ox::Builder.build {\n      \#{template.source}\n    };xml.to_xml\n  RUBY\nend\n"