Sha256: 75365dd4e993c243211c366a75a3a8dbcfa6dd9ab5d1c38d87cca96b7bc9744b
Contents?: true
Size: 359 Bytes
Versions: 2
Compression:
Stored size: 359 Bytes
Contents
module RiceBubble class Attributes class Serialized < Base attr_reader :serializer def initialize(serializer, &) super(&) @serializer = serializer end def valid?(value) serializer.valid?(value) end def call(value, path: '') serializer.call(value, path:) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rice_bubble-0.2.1 | lib/rice_bubble/attributes/serialized.rb |
rice_bubble-0.2.0 | lib/rice_bubble/attributes/serialized.rb |