Module: Sequel::Plugins::Json::Serialize

Defined in:
lib/sequel/plugins/json.rb

Class Method Summary collapse

Class Method Details

.call(value) ⇒ Object



9
10
11
12
# File 'lib/sequel/plugins/json.rb', line 9

def self.call(value)
  return value if value.nil? || value.kind_of?(String)
  Yajl::Encoder.encode(value)
end