Class: Byebug::VarGlobalCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/byebug/commands/variables.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match

Constructor Details

This class inherits a constructor from Byebug::Command

Class Method Details

.descriptionObject



100
101
102
# File 'lib/byebug/commands/variables.rb', line 100

def description
  %{v[ar] g[lobal]\t\t\tshow global variables}
end

.namesObject



96
97
98
# File 'lib/byebug/commands/variables.rb', line 96

def names
  %w(var)
end

Instance Method Details

#executeObject



91
92
93
# File 'lib/byebug/commands/variables.rb', line 91

def execute
  var_global
end

#regexpObject



87
88
89
# File 'lib/byebug/commands/variables.rb', line 87

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