Class: Array

Inherits:
Object show all
Defined in:
lib/pup/utilities/array.rb

Instance Method Summary collapse

Instance Method Details

#with_value(base) ⇒ Object



2
3
4
# File 'lib/pup/utilities/array.rb', line 2

def with_value(base)
  reject { |field| base.send(field).nil? }
end

#without_idObject



6
7
8
# File 'lib/pup/utilities/array.rb', line 6

def without_id
  reject { |key| key == :id }
end