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

=~

        # String.=~

(from ruby core)
---
    string =~ regexp -> integer or nil
    string =~ object -> integer or nil

---

Returns the Integer index of the first substring that matches the given
`regexp`, or `nil` if no match found:

    'foo' =~ /f/ # => 0
    'foo' =~ /o/ # => 1
    'foo' =~ /x/ # => nil

Note: also updates [Regexp-related global
variables](Regexp.html#class-Regexp-label-Special+global+variables).

If the given `object` is not a Regexp, returns the value returned by
`object =~ self`.

Note that `string =~ regexp` is different from `regexp =~ string` (see
[Regexp#=~](https://ruby-doc.org/core-2.7.1/Regexp.html#method-i-3D-7E))
:

    number= nil
    "no. 9" =~ /(?<number>\d+)/
    number # => nil (not assigned)
    /(?<number>\d+)/ =~ "no. 9"
    number #=> "9"



      

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.