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

peek

        # StringScanner.peek

(from ruby core)
---
    peek(len)

---

Extracts a string corresponding to `string[pos,len]`, without advancing
the scan pointer.

    s = StringScanner.new('test string')
    s.peek(7)          # => "test st"
    s.peek(7)          # => "test st"



      

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.