Sha256: 33f668fb1d5794c8993e2ebe415170a0f4cfaba444f0f1db1dedb8f5a5badf6d
Contents?: true
Size: 230 Bytes
Versions: 30
Compression:
Stored size: 230 Bytes
Contents
class Rack::App::Serializer attr_reader :logic def initialize @logic = lambda { |o| o.to_s } end def set_serialization_logic(proc) @logic = proc end def serialize(object) @logic.call(object) end end
Version data entries
30 entries across 30 versions & 1 rubygems