class JbuilderHandler - jbuilder-1.5.3 Documentation

# class JbuilderHandler

### Public Class Methods

call(template) click to toggle source

    # File lib/jbuilder/jbuilder_template.rb, line 112
    def self.call(template)
      # this juggling is required to keep line numbers right in the error
      %Q{__already_defined = defined?(json); json||=JbuilderTemplate.new(self); #{template.source}
        json.target! unless __already_defined}
    end