Class: OrderedHash

Inherits:
Object show all
Defined in:
lib/mongo_persist/util.rb

Instance Method Summary collapse

Instance Method Details

#reject(&b) ⇒ Object



22
23
24
25
26
# File 'lib/mongo_persist/util.rb', line 22

def reject(&b)
  res = OrderedHash.new
  each { |k,v| res[k] = v unless yield(k,v) }
  res
end