Sha256: b0f363bcba35c3434341f939bf3554b1853cde999bfb03df191e254bc2cc4c6c

Contents?: true

Size: 689 Bytes

Versions: 6835

Compression:

Stored size: 689 Bytes

Contents

# frozen_string_literal: true

module Byebug
  #
  # Reopens the +info+ command to define the +line+ subcommand
  #
  class InfoCommand < Command
    #
    # Information about current location
    #
    class LineCommand < Command
      self.allow_in_post_mortem = true

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

      def self.description
        <<-DESCRIPTION
          inf[o] l[ine]

          #{short_description}
        DESCRIPTION
      end

      def self.short_description
        "Line number and file name of current position in source file."
      end

      def execute
        puts "Line #{frame.line} of \"#{frame.file}\""
      end
    end
  end
end

Version data entries

6,835 entries across 6,831 versions & 37 rubygems

Version Path
cybrid_api_bank_ruby-0.123.137 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.135 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_bank_ruby-0.123.135 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.135 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_bank_ruby-0.123.134 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.134 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.134 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_bank_ruby-0.123.132 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.132 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.132 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_bank_ruby-0.123.131 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.131 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.131 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_bank_ruby-0.123.129 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.129 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.129 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_bank_ruby-0.123.127 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.127 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.127 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_bank_ruby-0.123.126 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb