summaryrefslogtreecommitdiff
path: root/spec/ruby/core/tracepoint/fixtures/classes.rb
blob: 3ab1b00b168e785eb8ca0486cc824e6b130daa68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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