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

sub_ext

        # Pathname.sub_ext

(from ruby core)
---
    sub_ext(p1)

---

Return a pathname with `repl` added as a suffix to the basename.

If self has no extension part, `repl` is appended.

    Pathname.new('/usr/bin/shutdown').sub_ext('.rb')
        #=> #<Pathname:/usr/bin/shutdown.rb>



      

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.