This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

match?

        # String.match?

(from ruby core)
---
    match?(pattern, offset = 0) -> true or false

---

Returns `true` or `false` based on whether a match is found for `self`
and `pattern`.

Note: does not update [Regexp-related global
variables](Regexp.html#class-Regexp-label-Special+global+variables).

Computes `regexp` by converting `pattern` (if not already a Regexp).
    regexp = Regexp.new(pattern)

Returns `true` if `self+.match(regexp)` returns a Matchdata object,
`false` otherwise:

    'foo'.match?(/o/) # => true
    'foo'.match?('o') # => true
    'foo'.match?(/x/) # => false

If Integer argument `offset` is given, the search begins at index
`offset`:
    'foo'.match?('f', 1) # => false
    'foo'.match?('o', 1) # => true



      

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.