このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ

Ruby 2.5.0 リファレンスマニュアル

instance method RDoc::CodeObject#section

section -> RDoc::Context::Section[permalink][rdoc]

所属している section を返します。