Parent

Class/Module 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
def initialize(*args)
  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.'
  super
end

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.