Sha256: c48e4c818673a177be2fa376bfeff7e6b4326eed27afb87e6e149960c294b335
Contents?: true
Size: 276 Bytes
Versions: 2
Compression:
Stored size: 276 Bytes
Contents
module Intercom class ShallowHash < Hash #:nodoc: def []=(key, value) raise ArgumentError.new("custom_data does not support nested data structures (key: #{key}, value: #{value}") if value.is_a?(Array) || value.is_a?(Hash) super(key, value) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
intercom-0.0.3 | lib/intercom/shallow_hash.rb |
intercom-0.0.2 | lib/intercom/shallow_hash.rb |