Sha256: 5ad70b7fcc60a9fd3c9fc36c8698fd56f3f269fd53a3f97cac6c96ba1384ae7a
Contents?: true
Size: 263 Bytes
Versions: 2
Compression:
Stored size: 263 Bytes
Contents
module ShowcaseFilter module Models class GroupCollection < Array def +(other_array) self.concat(other_array) end def find_by_label(label) self.select { |group| group.label == label }.first end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
showcase_filter-0.0.2 | lib/showcase_filter/models/group_collection.rb |
showcase_filter-0.0.1 | lib/showcase_filter/models/group_collection.rb |