This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Hash.any? (from ruby core) --- hash.any? -> true or false hash.any?(object) -> true or false hash.any? {|key, value| ... } -> true or false --- Returns `true` if any element satisfies a given criterion; `false` otherwise. With no argument and no block, returns `true` if `self` is non-empty; `false` if empty. With argument `object` and no block, returns `true` if for any key `key` `h.assoc(key) == object`: h = {foo: 0, bar: 1, baz: 2} h.any?([:bar, 1]) # => true h.any?([:bar, 0]) # => false h.any?([:baz, 1]) # => false With no argument and a block, calls the block with each key-value pair; returns `true` if the block returns any truthy value, `false` otherwise: h = {foo: 0, bar: 1, baz: 2} h.any? {|key, value| value < 3 } # => true h.any? {|key, value| value > 3 } # => false
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.