Parent

Class Index [+]

Quicksearch

ActiveSupport::JSON::Variable

Deprecated: A string that returns itself as its JSON-encoded form.

Public Class Methods

new(*args) click to toggle source
    # File lib/active_support/json/variable.rb, line 7
 7:       def initialize(*args)
 8:         ActiveSupport::Deprecation.warn 'ActiveSupport::JSON::Variable is deprecated and will be removed in Rails 4.0. '                                          'For your own custom JSON literals, define #as_json and #encode_json yourself.'
 9:         super
10:       end

Public Instance Methods

as_json(options = nil) click to toggle source
    # File lib/active_support/json/variable.rb, line 13
13:       def as_json(options = nil) self end
encode_json(encoder) click to toggle source
    # File lib/active_support/json/variable.rb, line 14
14:       def encode_json(encoder) self end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.