Class: ActiveSupport::JSON::Variable

Inherits:
String show all
Defined in:
lib/active_support/json.rb

Overview

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

Instance Method Summary collapse

Methods inherited from String

#blank?, #to_xs

Methods included from CoreExtensions::String::Unicode

#chars, #is_utf8?

Methods included from CoreExtensions::String::Iterators

#each_char

Methods included from CoreExtensions::String::StartsEndsWith

#ends_with?, #starts_with?

Methods included from CoreExtensions::String::Inflections

#camelize, #classify, #constantize, #dasherize, #demodulize, #foreign_key, #humanize, #pluralize, #singularize, #tableize, #titleize, #underscore

Methods included from CoreExtensions::String::Conversions

#to_date, #to_time

Methods included from CoreExtensions::String::Access

#at, #first, #from, #last, #to

Instance Method Details

#to_jsonObject

:nodoc:



10
11
12
# File 'lib/active_support/json.rb', line 10

def to_json
  self
end