Sha256: b0f363bcba35c3434341f939bf3554b1853cde999bfb03df191e254bc2cc4c6c

Contents?: true

Size: 689 Bytes

Versions: 6834

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,834 entries across 6,830 versions & 37 rubygems

Version Path
ory-client-1.16.4 vendor/bundle/ruby/3.1.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.179 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.179 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.177 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.177 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.176 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.176 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.175 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.175 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.174 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.174 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.173 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.173 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
ory-client-1.16.3 vendor/bundle/ruby/3.1.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.172 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.172 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.171 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.171 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_id_ruby-0.123.170 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb
cybrid_api_organization_ruby-0.123.170 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb