Sha256: 07a28ba04be1d1fd070e55d6adb26d269e11b74bbed152854f34747a145f96f0

Contents?: true

Size: 543 Bytes

Versions: 2

Compression:

Stored size: 543 Bytes

Contents

module Byebug
  #
  # Reopens the +var+ command to define the +global+ subcommand
  #
  class VarCommand < Command
    #
    # Shows global variables
    #
    class GlobalSubcommand < Command
      include Helpers::VarHelper

      def regexp
        /^\s* g(?:lobal)? \s*$/x
      end

      def execute
        var_global
      end

      def short_description
        'Shows global variables.'
      end

      def description
        <<-EOD
          v[ar] g[lobal]

          #{short_description}
        EOD
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/byebug-5.0.0/lib/byebug/commands/var/global.rb
byebug-5.0.0 lib/byebug/commands/var/global.rb