Class: Array

Inherits:
Object
  • Object
show all
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

Parameters:

  • type (String)

Returns:



13
14
15
# File 'lib/relaton_iso_bib/iso_bibliographic_item.rb', line 13

def filter(type:)
  select { |e| e.type == type }
end