2017-11-27 05:45:24 -05:00
|
|
|
# frozen_string_literal: true
|
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
|
|
|
|
2018-08-26 21:30:18 -04:00
|
|
|
def +
|
|
|
|
end
|
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
|
|
|
|
|
2018-03-26 01:56:26 -04:00
|
|
|
class C8
|
|
|
|
class << self
|
|
|
|
class S1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-08-26 21:30:18 -04:00
|
|
|
class C9
|
|
|
|
class A
|
|
|
|
def foo() end
|
|
|
|
def self.bar() end
|
|
|
|
end
|
|
|
|
|
|
|
|
class B < A
|
|
|
|
def self.foo() end
|
|
|
|
def bar() end
|
|
|
|
end
|
|
|
|
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
|
|
|
|
|