Class: RJSON::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/rjson/handler.rb

Class Method Summary collapse

Class Method Details

.call(template) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/rjson/handler.rb', line 10

def call(template)
  <<-COMPILED_METHOD
    contents=begin;
      #{template.source}
    end
  
    RJSON::String.new(contents.to_json)
  COMPILED_METHOD
end