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

next_year

        # Date.next_year

(from ruby core)
---
    d.next_year([n=1])  ->  date

---

This method is equivalent to d >> (n * 12).

    Date.new(2001,2,3).next_year      #=> #<Date: 2002-02-03 ...>
    Date.new(2008,2,29).next_year     #=> #<Date: 2009-02-28 ...>
    Date.new(2008,2,29).next_year(4)  #=> #<Date: 2012-02-29 ...>

See also Date#>>.



      

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.