Ruby 1.9.3 リファレンスマニュアル
>
ライブラリ一覧
>
dateライブラリ
>
Dateクラス
> year
instance method Date#year
year -> Integer
年を返します。
class Date