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

each_child

        # Pathname.each_child

(from ruby core)
---
    each_child(with_directory=true, &b)

---

Iterates over the children of the directory (files and subdirectories,
not recursive).

It yields Pathname object for each child.

By default, the yielded pathnames will have enough information to access
the files.

If you set `with_directory` to `false`, then the returned pathnames will
contain the filename only.

    Pathname("/usr/local").each_child {|f| p f }
    #=> #<Pathname:/usr/local/share>
    #   #<Pathname:/usr/local/bin>
    #   #<Pathname:/usr/local/games>
    #   #<Pathname:/usr/local/lib>
    #   #<Pathname:/usr/local/include>
    #   #<Pathname:/usr/local/sbin>
    #   #<Pathname:/usr/local/src>
    #   #<Pathname:/usr/local/man>

    Pathname("/usr/local").each_child(false) {|f| p f }
    #=> #<Pathname:share>
    #   #<Pathname:bin>
    #   #<Pathname:games>
    #   #<Pathname:lib>
    #   #<Pathname:include>
    #   #<Pathname:sbin>
    #   #<Pathname:src>
    #   #<Pathname:man>

Note that the results never contain the entries `.` and `..` in the
directory because they are not children.

See Pathname#children



      

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.