A normal module, like NormalClass
The definition of this module, module MyModuleName
# File ruby-3.1.2/lib/rdoc/normal_module.rb, line 21 def definition "module #{full_name}" end
This is a module, returns true
# File ruby-3.1.2/lib/rdoc/normal_module.rb, line 28 def module? true end
Modules don't have one, raises NoMethodError
# File ruby-3.1.2/lib/rdoc/normal_module.rb, line 69 def superclass raise NoMethodError, "#{full_name} is a module" end