Class: Riif::Rails::TemplateHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/riif/rails/template_handler.rb

Class Method Summary collapse

Class Method Details

.call(template) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/riif/rails/template_handler.rb', line 7

def self.call(template)
  <<-RUBY
    iif = ::Riif::IIF.new

    #{template.source}

    iif.output
  RUBY
end