Sha256: 3b3243ab868258b5c66904cbd1f79dbe5fab092aaa47e37b90a2bf251d7ffe66

Contents?: true

Size: 696 Bytes

Versions: 6770

Compression:

Stored size: 696 Bytes

Contents

# frozen_string_literal: true

require_relative "../../helpers/thread"

module Byebug
  #
  # Reopens the +thread+ command to define the +current+ subcommand
  #
  class ThreadCommand < Command
    #
    # Information about the current thread
    #
    class CurrentCommand < Command
      include Helpers::ThreadHelper

      def self.regexp
        /^\s* c(?:urrent)? \s*$/x
      end

      def self.description
        <<-DESCRIPTION
          th[read] c[urrent]

          #{short_description}
        DESCRIPTION
      end

      def self.short_description
        "Shows current thread information"
      end

      def execute
        display_context(context)
      end
    end
  end
end

Version data entries

6,770 entries across 6,767 versions & 30 rubygems

Version Path
cybrid_api_bank_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_id_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_organization_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_bank_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_id_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_organization_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_bank_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_organization_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_id_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
ory-client-1.16.2 vendor/bundle/ruby/3.1.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_bank_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_organization_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_id_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_bank_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_id_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_organization_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
ory-client-1.16.1 vendor/bundle/ruby/3.1.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
ory-client-1.16.0 vendor/bundle/ruby/3.1.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb
cybrid_api_bank_ruby-0.123.143 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb