class Hamster::SortedSet

def above(item, &block)

Parameters:
  • item (Object) --

Returns:
  • (nil) -
  • (SortedSet) -

Other tags:
    Yield: - Once for each item greater than `item`, in order from

Overloads:
  • above(item)
  • above(item)
def above(item, &block)
  if block_given?
    @node.each_greater(item, false, &block)
  else
    self.class.alloc(@node.suffix(item, false))
  end
end