Class: RJSON::Handler
- Inherits:
-
ActionView::TemplateHandler
- Object
- ActionView::TemplateHandler
- RJSON::Handler
- Includes:
- ActionView::Template::Handlers::Compilable
- Defined in:
- lib/rjson/handler.rb
Instance Method Summary collapse
Instance Method Details
#compile(template) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/rjson/handler.rb', line 10 def compile(template) <<-COMPILED_METHOD contents=begin; #{template.source} end RJSON::String.new(contents.to_json) COMPILED_METHOD end |