Class: ActiveSupport::JSON::Variable

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

Overview

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

Constant Summary

Constants included from Term::ANSIColor

Term::ANSIColor::ATTRIBUTES, Term::ANSIColor::ATTRIBUTE_NAMES, Term::ANSIColor::COLORED_REGEXP, Term::ANSIColor::VERSION, Term::ANSIColor::VERSION_ARRAY, Term::ANSIColor::VERSION_BUILD, Term::ANSIColor::VERSION_MAJOR, Term::ANSIColor::VERSION_MINOR

Instance Method Summary collapse

Methods inherited from String

#acts_like_string?, #at, #blank?, #camelize, #classify, #constantize, #dasherize, #demodulize, #encoding_aware?, #exclude?, #first, #foreign_key, #from, #html_safe, #html_safe!, #humanize, #is_utf8?, #last, #mb_chars, #ord, #parameterize, #pluralize, #singularize, #squish, #squish!, #tableize, #titleize, #to, #to_date, #to_datetime, #to_time, #truncate, #underscore

Methods included from CSD::Extensions::Core::String

#enquote

Methods included from Term::ANSIColor

attributes, coloring=, coloring?, #uncolored

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



148
# File 'lib/active_support/json/encoding.rb', line 148

def as_json(options = nil) self end

#encode_json(encoder) ⇒ Object

:nodoc:



149
# File 'lib/active_support/json/encoding.rb', line 149

def encode_json(encoder) self end