Sha256: 48e59e36265b5a3716d1c189654426ffb70a69657dcaa406b0badae7e3a49d91
Contents?: true
Size: 315 Bytes
Versions: 2
Compression:
Stored size: 315 Bytes
Contents
module MicroMicro module Collections class ItemsCollection < BaseCollection # @return [Array<Hash{Symbol => Array<String, Hash>}>] def to_a map(&:to_h) end # @return [Array<String>] def types @types ||= map(&:types).flatten.uniq.sort end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
micromicro-1.1.0 | lib/micro_micro/collections/items_collection.rb |
micromicro-1.0.0 | lib/micro_micro/collections/items_collection.rb |