| Server IP : 217.160.0.244 / Your IP : 216.73.217.172 Web Server : Apache System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64 User : u100174116 ( 6746176) PHP Version : 8.5.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/ruby/3.3.0/rdoc/ |
Upload File : |
# frozen_string_literal: true
##
# A singleton class
class RDoc::SingleClass < RDoc::ClassModule
##
# Adds the superclass to the included modules.
def ancestors
superclass ? super + [superclass] : super
end
def aref_prefix # :nodoc:
'sclass'
end
##
# The definition of this singleton class, <tt>class << MyClassName</tt>
def definition
"class << #{full_name}"
end
def pretty_print q # :nodoc:
q.group 2, "[class << #{full_name}", "]" do
next
end
end
end