This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Integer.<=> (from ruby core) --- self <=> other -> -1, 0, +1, or nil --- Returns: * -1, if `self` is less than `other`. * 0, if `self` is equal to `other`. * 1, if `self` is greater then `other`. * `nil`, if `self` and `other` are incomparable. Examples: 1 <=> 2 # => -1 1 <=> 1 # => 0 1 <=> 0 # => 1 1 <=> 'foo' # => nil 1 <=> 1.0 # => 0 1 <=> Rational(1, 1) # => 0 1 <=> Complex(1, 0) # => 0 This method is the basis for comparisons in module Comparable.
This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.