Module: Yaks::Serializer::JSONReader

Extended by:
FP::Callable
Defined in:
lib/yaks/serializer.rb

Class Method Summary collapse

Methods included from FP::Callable

to_proc

Class Method Details

.call(data, _env) ⇒ Object



31
32
33
# File 'lib/yaks/serializer.rb', line 31

def self.call(data, _env)
  JSON.parse(data)
end

.inverseObject



39
40
41
# File 'lib/yaks/serializer.rb', line 39

def self.inverse
  JSONWriter
end

.transitive?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/yaks/serializer.rb', line 35

def self.transitive?
  true
end