Sha256: 107c970a0e93b77b8712e7389ecfd02a520909f3d5dddb35fe5907fda87f1bd1

Contents?: true

Size: 215 Bytes

Versions: 2

Compression:

Stored size: 215 Bytes

Contents

class MLS::Property::Hash < MLS::Property
  
  def load(value) # from_json
    case value
    when Hash
      value.with_indifferent_access
    else
      value
    end
  end

  def dump(value)
    value
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mls-0.6.0 lib/mls/properties/hash.rb
mls-0.5.12 lib/mls/properties/hash.rb