HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/ruby-3.0.2/spec/ruby/core/tracepoint/fixtures/classes.rb
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