class PersistentTree::MapView::Entry

Allow Entry objects to be ordered by their key or by comparing their key to other values

Public Instance Methods

<=>(other) click to toggle source
# File lib/persistent_tree/map.rb, line 34
def <=>(other)
  if other.is_a? Entry
    key <=> other.key
  else
    key <=> other
  end
end