Class: DeRjs::JsonLiteral

Inherits:
String
  • Object
show all
Defined in:
lib/de_rjs/jquery_generator.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:



8
# File 'lib/de_rjs/jquery_generator.rb', line 8

def as_json(options = nil) self end

#encode_json(encoder) ⇒ Object

:nodoc:



9
# File 'lib/de_rjs/jquery_generator.rb', line 9

def encode_json(encoder) self end