Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/iso_bib_item/iso_bibliographic_item.rb
Overview
Add filter method to Array.
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#filter(type:) ⇒ Object
15 16 17 |
# File 'lib/iso_bib_item/iso_bibliographic_item.rb', line 15 def filter(type:) select { |e| e.type == type } end |