1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/tracepoint/fixtures/classes.rb
2020-05-31 18:22:49 +02:00

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