Class: ShowcaseFilter::Models::GroupCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/showcase_filter/models/group_collection.rb

Instance Method Summary collapse

Instance Method Details

#+(other_array) ⇒ Object



4
5
6
# File 'lib/showcase_filter/models/group_collection.rb', line 4

def +(other_array)
  self.concat(other_array)
end

#find_by_label(label) ⇒ Object



8
9
10
# File 'lib/showcase_filter/models/group_collection.rb', line 8

def find_by_label(label)
  self.select { |group| group.label == label }.first
end