Class: Sequel::Plugins::JsonSerializer::Literal
- Defined in:
- lib/sequel/plugins/json_serializer.rb
Overview
SEQUEL6: Remove :nocov:
Instance Method Summary collapse
-
#initialize(json) ⇒ Literal
constructor
A new instance of Literal.
- #to_json(*a) ⇒ Object
Constructor Details
#initialize(json) ⇒ Literal
Returns a new instance of Literal.
139 140 141 |
# File 'lib/sequel/plugins/json_serializer.rb', line 139 def initialize(json) @json = json end |
Instance Method Details
#to_json(*a) ⇒ Object
143 144 145 |
# File 'lib/sequel/plugins/json_serializer.rb', line 143 def to_json(*a) @json end |