A normal module, like NormalClass
The definition of this module, module MyModuleName
# File lib/rdoc/normal_module.rb, line 16
def definition
"module #{full_name}"
end
This is a module, returns true
# File lib/rdoc/normal_module.rb, line 23
def module?
true
end
Modules don’t have one, raises NoMethodError
# File lib/rdoc/normal_module.rb, line 59
def superclass
raise NoMethodError, "#{full_name} is a module"
end
/ | Search |
---|---|
? | Show this help |