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
13 14 15 |
# File 'lib/relaton_iso_bib/iso_bibliographic_item.rb', line 13 def filter(type:) select { |e| e.type == type } end |