I am aware of the following two methods to remove items from array:
a.delete_if {|x| x >= "b" }
array.reject {|x| x < 3}
But neither of them suite my needs. I need a way to specify a clean way to identify the items to remove from the array. Something like this:
Model.column_names # => [:age, :name, :created_at, :updated_at]
Model.column_names.discard :created_at, :updated_at
Model.column_names # => [:age, :name]
where discard could take an unlimited amount of symbols.