class Queuel::Hash

Public Class Methods

new(*args, &block) click to toggle source
Calls superclass method
# File lib/queuel/core_ext/hash.rb, line 3
def self.new(*args, &block)
  if args.first.is_a?(::Hash)
    allocate.send(:initialize).replace(args.first)
  else
    super *args, &block
  end
end

Public Instance Methods

partition(&block) click to toggle source
Calls superclass method
# File lib/queuel/core_ext/hash.rb, line 11
def partition(&block)
  if block_given?
    one, two = super &block
    [Hash[one], Hash[two]]
  else
    super &block
  end
end