mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
40 lines
433 B
Ruby
40 lines
433 B
Ruby
module TracePointSpec
|
|
@thread = Thread.current
|
|
|
|
def self.target_thread?
|
|
Thread.current == @thread
|
|
end
|
|
|
|
class ClassWithMethodAlias
|
|
def m
|
|
end
|
|
alias_method :m_alias, :m
|
|
end
|
|
|
|
module A
|
|
def bar; end
|
|
end
|
|
|
|
class B
|
|
include A
|
|
|
|
def foo; end;
|
|
end
|
|
|
|
class C < B
|
|
def initialize
|
|
end
|
|
|
|
def foo
|
|
super
|
|
end
|
|
|
|
def bar
|
|
super
|
|
end
|
|
end
|
|
|
|
def self.test
|
|
'test'
|
|
end
|
|
end
|