Class: ActiveSupport::JSON::Variable

Inherits:
String show all
Defined in:
activesupport/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

#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!, #strip_heredoc, #tableize, #titleize, #to, #to_date, #to_datetime, #to_time, #truncate, #underscore

Instance Method Details

- (Object) as_json(options = nil)

:nodoc:



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

def as_json(options = nil) self end

- (Object) encode_json(encoder)

:nodoc:



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

def encode_json(encoder) self end