Class: ActionView::JsonLiteral
- Inherits:
-
String
- Object
- String
- ActionView::JsonLiteral
- Defined in:
- lib/action_view/helpers/prototype_helper.rb
Overview
A string that returns itself as its JSON-encoded form.
Instance Method Summary collapse
-
#as_json(options = nil) ⇒ Object
:nodoc:.
-
#encode_json(encoder) ⇒ Object
:nodoc:.
Instance Method Details
#as_json(options = nil) ⇒ Object
:nodoc:
9 |
# File 'lib/action_view/helpers/prototype_helper.rb', line 9 def as_json( = 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 |