This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Array.count (from ruby core) --- array.count -> an_integer array.count(obj) -> an_integer array.count {|element| ... } -> an_integer --- Returns a count of specified elements. With no argument and no block, returns the count of all elements: [0, 1, 2].count # => 3 [].count # => 0 With argument `obj`, returns the count of elements `==` to `obj`: [0, 1, 2, 0.0].count(0) # => 2 [0, 1, 2].count(3) # => 0 With no argument and a block given, calls the block with each element; returns the count of elements for which the block returns a truthy value: [0, 1, 2, 3].count {|element| element > 1} # => 2 With argument `obj` and a block given, issues a warning, ignores the block, and returns the count of elements `==` to `obj`:
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.