class Hash

Public Instance Methods

<=>(other) click to toggle source

regretfully, duckpunching

# File lib/bundix/nixer.rb, line 5
def <=>(other)
  if other.is_a?(Hash)
    larray = to_a.sort{|l,r| Bundix::Nixer.order(l,r)}
    rarray = other.to_a.sort{|l,r| Bundix::Nixer.order(l,r)}
    larray <=> rarray
  else
    nil
  end
end