Sha256: f67d2f6d0ed2701afee44435243e4bef4584b71c19498365b88a2105583005de

Contents?: true

Size: 211 Bytes

Versions: 25

Compression:

Stored size: 211 Bytes

Contents

class MLS::Property::Hash < MLS::Property
  
  def load(value) # from_json
    if value.is_a?(Hash)
      value.with_indifferent_access
    else
      value
    end
  end

  def dump(value)
    value
  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
mls-0.11.3 lib/mls/properties/hash.rb
mls-0.11.2 lib/mls/properties/hash.rb
mls-0.11.1 lib/mls/properties/hash.rb
mls-0.11.0 lib/mls/properties/hash.rb
mls-0.9.9 lib/mls/properties/hash.rb
mls-0.9.8 lib/mls/properties/hash.rb
mls-0.9.6 lib/mls/properties/hash.rb
mls-0.9.5 lib/mls/properties/hash.rb
mls-0.9.4 lib/mls/properties/hash.rb
mls-0.9.3 lib/mls/properties/hash.rb
mls-0.9.2 lib/mls/properties/hash.rb
mls-0.9.1 lib/mls/properties/hash.rb
mls-0.9.0 lib/mls/properties/hash.rb
mls-0.8.2 lib/mls/properties/hash.rb
mls-0.8.1 lib/mls/properties/hash.rb
mls-0.8.0 lib/mls/properties/hash.rb
mls-0.7.2 lib/mls/properties/hash.rb
mls-0.7.1 lib/mls/properties/hash.rb
mls-0.7.0 lib/mls/properties/hash.rb
mls-0.6.7 lib/mls/properties/hash.rb