Module: Innate::View::ERB
- Defined in:
- /home/manveru/github/ramaze/ramaze.net/tmp/git/innate/lib/innate/view/erb.rb
Class Method Summary (collapse)
Class Method Details
+ (Object) call(action, string)
6 7 8 9 10 |
# File '/home/manveru/github/ramaze/ramaze.net/tmp/git/innate/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 |