Sha256: 5616f3e1c51fa6ba8ce58a76dea98cc38760e2511902a8c0b2dfd61a12996ea8
Contents?: true
Size: 750 Bytes
Versions: 2
Compression:
Stored size: 750 Bytes
Contents
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns the root name of the module/class. - !ruby/struct:SM::Flow::VERB body: " module Example\n class Demo\n end\n end\n\n Demo.name #=> "Example::Demo"\n Demo.basename #=> "Demo"\n" - !ruby/struct:SM::Flow::P body: For anonymous modules this will provide a basename based on Module#inspect. - !ruby/struct:SM::Flow::VERB body: " m = Module.new\n m.inspect #=> "#<Module:0xb7bb0434>"\n m.basename #=> "Module_0xb7bb0434"\n\n CREDIT: Trans\n" full_name: Module#basename is_singleton: false name: basename params: () visibility: public
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facets-2.4.2 | doc/ri/Module/basename-i.yaml |
facets-2.4.3 | doc/ri/Module/basename-i.yaml |