Class: Sequel::Plugins::JsonSerializer::Literal

Inherits:
Object
  • Object
show all
Defined in:
lib/sequel/plugins/json_serializer.rb

Overview

SEQUEL6: Remove :nocov:

Instance Method Summary collapse

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