Method: ActionView::Template::Handlers::MbraoTemplate#call

Defined in:
lib/mbrao/integrations/rails.rb

#call(template) ⇒ String

Method called to render a template.

Parameters:

Returns:

  • (String)

    A Ruby snippet to execute to render the template.



56
57
58
# File 'lib/mbrao/integrations/rails.rb', line 56

def call(template)
  "ActionView::Template::Handlers::MbraoTemplate.instance.render(self, #{template.source.to_json})"
end