Class: QbIif::Rails::TemplateHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/qb_iif/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/qb_iif/rails/template_handler.rb', line 7

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

    #{template.source}

    iif.output
  RUBY
end