Method: RDoc::AnyMethod#top_level

Defined in:
lib/erbook/rdoc.rb

#top_levelObject

Returns the RDoc::TopLevel object which contains this method.



123
124
125
126
127
128
129
130
131
# File 'lib/erbook/rdoc.rb', line 123

def top_level
  n = parent

  while n && n.parent
    n = n.parent
  end

  n
end