Class: NoEscape
- Inherits:
-
Object
- Object
- NoEscape
- Defined in:
- lib/datatablesnet/types.rb
Instance Method Summary collapse
-
#as_json(options = nil) ⇒ Object
:nodoc:.
-
#encode_json(encoder) ⇒ Object
:nodoc:.
-
#initialize(text) ⇒ NoEscape
constructor
A new instance of NoEscape.
- #to_s ⇒ Object
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( = nil) self end |
#encode_json(encoder) ⇒ Object
:nodoc:
4 |
# File 'lib/datatablesnet/types.rb', line 4 def encode_json(encoder) to_s end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/datatablesnet/types.rb', line 10 def to_s @text end |