Class: ActiveSupport::JSON::Variable

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

Overview

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

Instance Method Summary collapse

Methods inherited from String

#as_json, #as_str, #blank?, #html_safe, #html_safe?, #to_xs

Methods included from CoreExtensions::String::Multibyte

#chars, #is_utf8?, #mb_chars

Methods included from CoreExtensions::String::Behavior

#acts_like_string?

Methods included from CoreExtensions::String::Iterators

append_features, #each_char

Methods included from CoreExtensions::String::StartsEndsWith

append_features, #ends_with?, #starts_with?

Methods included from CoreExtensions::String::Inflections

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

Methods included from CoreExtensions::String::Filters

#squish, #squish!

Methods included from CoreExtensions::String::Conversions

#ord, #to_date, #to_datetime, #to_time

Methods included from CoreExtensions::String::Access

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

Instance Method Details

#to_json(options = nil) ⇒ Object



5
6
7
# File 'lib/active_support/json/variable.rb', line 5

def to_json(options=nil)
  self
end