%a{annotate:rdoc:skip} module RDoc # # A TopLevel context is a representation of the contents of a single file # class TopLevel < Context MARSHAL_VERSION: 0 # # Relative name of this file # attr_accessor relative_name: String # # Creates a new TopLevel for the file at `absolute_name`. If documentation is # being generated outside the source dir `relative_name` is relative to the # source directory. # def initialize: (String absolute_name, ?String relative_name) -> void # # An RDoc::TopLevel is equal to another with the same relative_name # def ==: (untyped other) -> bool # # alias eql? == # # Adds `an_alias` to `Object` instead of `self`. # def add_alias: (RDoc::Alias an_alias) -> RDoc::Alias # # Adds `constant` to `Object` instead of `self`. # def add_constant: (RDoc::Constant constant) -> RDoc::Constant # # Adds `include` to `Object` instead of `self`. # def add_include: (RDoc::Include `include`) -> RDoc::Include # # Adds `method` to `Object` instead of `self`. # def add_method: (RDoc::AnyMethod method) -> RDoc::AnyMethod # # See RDoc::TopLevel::find_class_or_module # def find_class_or_module: (::String name) -> RDoc::Context # # Finds a module or class with `name` # def find_module_named: (String name) -> RDoc::Context # # Returns the relative name of this file # def full_name: () -> String def to_s: () -> ::String end end