class Byebug::VarCommand::InstanceCommand - byebug-11.0.1 Documentation

# class Byebug::VarCommand::InstanceCommand

Shows instance variables

### Public Class Methods

description() click to toggle source

    # File lib/byebug/commands/var/instance.rb, line 22
          def self.description
            <<-DESCRIPTION
              v[ar] i[nstance][ <object>]

              #{short_description}
            DESCRIPTION
          end

regexp() click to toggle source

    # File lib/byebug/commands/var/instance.rb, line 18
    def self.regexp
      /^\s* i(?:nstance)? (?:\s+ (.+))? \s*$/x
    end

short_description() click to toggle source

    # File lib/byebug/commands/var/instance.rb, line 30
    def self.short_description
      "Shows instance variables of self or a specific object."
    end

### Public Instance Methods

execute() click to toggle source

    # File lib/byebug/commands/var/instance.rb, line 34
    def execute
      var_instance(@match[1])
    end