2015-12-16 00:07:31 -05:00
|
|
|
# frozen_string_literal: false
|
2010-04-01 03:45:16 -04:00
|
|
|
XREF_DATA = <<-XREF_DATA
|
|
|
|
class C1
|
|
|
|
|
|
|
|
attr :attr
|
2011-02-05 01:20:57 -05:00
|
|
|
|
|
|
|
# :section: separate
|
|
|
|
|
2010-04-01 03:45:16 -04:00
|
|
|
attr_reader :attr_reader
|
|
|
|
attr_writer :attr_writer
|
2011-02-05 01:20:57 -05:00
|
|
|
|
|
|
|
# :section:
|
2010-04-01 03:45:16 -04:00
|
|
|
attr_accessor :attr_accessor
|
|
|
|
|
|
|
|
CONST = :const
|
|
|
|
|
|
|
|
def self.m
|
|
|
|
end
|
|
|
|
|
2010-04-10 02:36:13 -04:00
|
|
|
def m foo
|
2010-04-01 03:45:16 -04:00
|
|
|
end
|
2010-12-19 22:22:49 -05:00
|
|
|
|
2010-04-01 03:45:16 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
class C2
|
2010-12-19 22:22:49 -05:00
|
|
|
def b
|
|
|
|
end
|
|
|
|
|
|
|
|
alias a b
|
|
|
|
|
2010-04-01 03:45:16 -04:00
|
|
|
class C3
|
|
|
|
def m
|
|
|
|
end
|
|
|
|
|
|
|
|
class H1
|
|
|
|
def m?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class C3
|
|
|
|
class H1
|
|
|
|
end
|
|
|
|
|
|
|
|
class H2 < H1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class C4
|
|
|
|
class C4
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class C5
|
|
|
|
class C1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-24 02:39:37 -05:00
|
|
|
class C6
|
|
|
|
private def priv1() end
|
|
|
|
def pub1() end
|
|
|
|
protected def prot1() end
|
|
|
|
def pub2() end
|
|
|
|
public def pub3() end
|
|
|
|
def pub4() end
|
|
|
|
|
|
|
|
private
|
|
|
|
private def priv2() end
|
|
|
|
def priv3() end
|
|
|
|
protected def prot2() end
|
|
|
|
def priv4() end
|
|
|
|
public def pub5() end
|
|
|
|
def priv5() end
|
|
|
|
|
|
|
|
protected
|
|
|
|
private def priv6() end
|
|
|
|
def prot3() end
|
|
|
|
protected def prot4() end
|
|
|
|
def prot5() end
|
|
|
|
public def pub6() end
|
|
|
|
def prot6() end
|
|
|
|
end
|
|
|
|
|
2017-08-29 07:52:50 -04:00
|
|
|
class C7
|
|
|
|
attr_reader :attr_reader
|
|
|
|
attr_reader :attr_reader_nodoc # :nodoc:
|
|
|
|
attr_writer :attr_writer
|
|
|
|
attr_writer :attr_writer_nodoc # :nodoc:
|
|
|
|
attr_accessor :attr_accessor
|
|
|
|
attr_accessor :attr_accessor_nodoc # :nodoc:
|
|
|
|
|
|
|
|
CONST = :const
|
|
|
|
CONST_NODOC = :const_nodoc # :nodoc:
|
|
|
|
end
|
|
|
|
|
2010-04-01 03:45:16 -04:00
|
|
|
module M1
|
2010-12-19 22:22:49 -05:00
|
|
|
def m
|
|
|
|
end
|
2010-04-01 03:45:16 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
module M1::M2
|
|
|
|
end
|
2011-05-13 20:39:16 -04:00
|
|
|
|
|
|
|
class Parent
|
|
|
|
def m() end
|
|
|
|
def self.m() end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Child < Parent
|
|
|
|
end
|
|
|
|
|
2010-04-01 03:45:16 -04:00
|
|
|
XREF_DATA
|
|
|
|
|