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