Sha256: 46af47d7ebd7995b0bb9f031ad17807099b4782e6365289e66ea6025b679ad8c
Contents?: true
Size: 252 Bytes
Versions: 3
Compression:
Stored size: 252 Bytes
Contents
module Egi class Item < Hash def initialize(ifnone = nil, &block) super self[:tags] ||= [] end def update(other) if tags = other.delete(:tags) self[:tags] += Array(tags) end super end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
egi-0.0.4 | lib/egi/item.rb |
egi-0.0.3 | lib/egi/item.rb |
egi-0.0.2 | lib/egi/item.rb |