Class: NoEscape

Inherits:
Object
  • Object
show all
Defined in:
lib/datatablesnet/types.rb

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ NoEscape

Returns a new instance of NoEscape.



6
7
8
# File 'lib/datatablesnet/types.rb', line 6

def initialize text
  @text = text
end

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



3
# File 'lib/datatablesnet/types.rb', line 3

def as_json(options = nil) self end

#encode_json(encoder) ⇒ Object

:nodoc:



4
# File 'lib/datatablesnet/types.rb', line 4

def encode_json(encoder) to_s end

#to_sObject



10
11
12
# File 'lib/datatablesnet/types.rb', line 10

def to_s
  @text
end