Sha256: 5c1cdff5b1ac80579380b3c0bcdab0edc0cdd4b0d4ce71214b2c74d188357129

Contents?: true

Size: 244 Bytes

Versions: 9

Compression:

Stored size: 244 Bytes

Contents

module Houston
  class ReadonlyHashSerializer

    def applies_to?(object)
      object.is_a?(Houston::ReadonlyHash)
    end

    def pack(object)
      object.to_h
    end

  end
end

Houston.add_serializer Houston::ReadonlyHashSerializer.new

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
houston-core-0.8.4 lib/houston/boot/readonly_hash_serializer.rb
houston-core-0.8.3 lib/houston/boot/readonly_hash_serializer.rb
houston-core-0.8.2 lib/houston/boot/readonly_hash_serializer.rb
houston-core-0.8.1 lib/houston/boot/readonly_hash_serializer.rb
houston-core-0.8.0 lib/houston/boot/readonly_hash_serializer.rb
houston-core-0.8.0.pre2 lib/houston/boot/readonly_hash_serializer.rb
houston-core-0.8.0.pre lib/houston/boot/readonly_hash_serializer.rb
houston-core-0.7.0 lib/houston/boot/readonly_hash_serializer.rb
houston-core-0.7.0.beta4 lib/houston/boot/readonly_hash_serializer.rb