lib/more/facets/dictionary.rb in facets-2.4.3 vs lib/more/facets/dictionary.rb in facets-2.4.4
- old
+ new
@@ -341,16 +341,16 @@
hsh2 = self.class.new
order.each { |k| hsh2[@hash[k]] = k }
hsh2
end
- def reject( &block )
- self.dup.delete_if &block
+ def reject(&block)
+ self.dup.delete_if(&block)
end
def reject!( &block )
- hsh2 = reject &block
+ hsh2 = reject(&block)
self == hsh2 ? nil : hsh2
end
def replace( hsh2 )
@order = hsh2.order
@@ -371,10 +371,10 @@
false
end
end
def <<(kv)
- push *kv
+ push(*kv)
end
def push( k,v )
unless @hash.include?( k )
@order.push( k )