Method: Sheap::Collection#of_type
- Defined in:
- lib/sheap.rb
#of_type(type) ⇒ Object
35 36 37 38 |
# File 'lib/sheap.rb', line 35 def of_type(type) type = type.to_s.upcase filter { |o| o.json.include?(type) && o.type_str == type } end |