Class: Byebug::VarCommand

Inherits:
Command
  • Object
show all
Includes:
Subcommands
Defined in:
lib/byebug/commands/var.rb,
lib/byebug/commands/var/all.rb,
lib/byebug/commands/var/args.rb,
lib/byebug/commands/var/const.rb,
lib/byebug/commands/var/local.rb,
lib/byebug/commands/var/global.rb,
lib/byebug/commands/var/instance.rb

Overview

Reopens the var command to define the instance subcommand

Defined Under Namespace

Classes: AllCommand, ArgsCommand, ConstCommand, GlobalCommand, InstanceCommand, LocalCommand

Instance Attribute Summary

Attributes inherited from Command

#processor

Class Method Summary collapse

Methods included from Subcommands

#execute, included

Methods inherited from Command

#arguments, columnize, #context, #frame, help, #initialize, match, to_s

Methods included from Helpers::StringHelper

#camelize, #deindent, #prettify

Constructor Details

This class inherits a constructor from Byebug::Command

Class Method Details

.descriptionObject



25
26
27
28
29
30
31
# File 'lib/byebug/commands/var.rb', line 25

def self.description
  <<-DESCRIPTION
    [v]ar <subcommand>

    #{short_description}
  DESCRIPTION
end

.regexpObject



21
22
23
# File 'lib/byebug/commands/var.rb', line 21

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

.short_descriptionObject



33
34
35
# File 'lib/byebug/commands/var.rb', line 33

def self.short_description
  "Shows variables and its values"
end