Sha256: 4464815b3fd74a4e474f9e93c8e4eb0d0043002dbcb898f2aa0b46ef5b4e1cbe
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
module Typekit module Element module Serialization def serialize(options = {}) keys = attributes.keys keys = keys & Array(options[:only]) if options.key?(:only) Hash[ keys.map do |key| value = attributes[key] value = value.serialize if value.respond_to?(:serialize) [key, value] end ] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typekit-client-0.0.6 | lib/typekit/element/serialization.rb |