class Array
Public Instance Methods
with_value(base)
click to toggle source
# File lib/algernon/utility/array_utils.rb, line 6 def with_value(base) reject { |field| base.send(field).nil? } end
without_id()
click to toggle source
# File lib/algernon/utility/array_utils.rb, line 2 def without_id reject { |key| key == :id } end