Methods

Innate::View::ERB

Public Class Methods

call(action, string) click to toggle source
# File lib/innate/view/erb.rb, line 6
def self.call(action, string)
  erb = View.compile(string){|str| ::ERB.new(str, nil, '%<>') }
  erb.filename = (action.view || action.method).to_s
  erb.result(action.binding)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.