Class: ActionView::JsonLiteral

Inherits:
String
  • Object
show all
Defined in:
lib/action_view/helpers/prototype_helper.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



9
# File 'lib/action_view/helpers/prototype_helper.rb', line 9

def as_json(options = nil) self end

#encode_json(encoder) ⇒ Object

:nodoc:



10
# File 'lib/action_view/helpers/prototype_helper.rb', line 10

def encode_json(encoder) self end