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

scan

        # StringScanner.scan

(from ruby core)
---
    scan(pattern) => String

---

Tries to match with `pattern` at the current position. If there's a
match, the scanner advances the "scan pointer" and returns the matched
string. Otherwise, the scanner returns `nil`.

    s = StringScanner.new('test string')
    p s.scan(/\w+/)   # -> "test"
    p s.scan(/\w+/)   # -> nil
    p s.scan(/\s+/)   # -> " "
    p s.scan("str")   # -> "str"
    p s.scan(/\w+/)   # -> "ing"
    p s.scan(/./)     # -> nil



      

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.