Module: Yaks::Serializer::JSONWriter

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



15
16
17
# File 'lib/yaks/serializer.rb', line 15

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

.inverseObject



23
24
25
# File 'lib/yaks/serializer.rb', line 23

def self.inverse
  JSONReader
end

.transitive?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/yaks/serializer.rb', line 19

def self.transitive?
  true
end