Sha256: d11307cca8558963dbc662733932980b1fd0221959d9177a17846670a117a5fb
Contents?: true
Size: 699 Bytes
Versions: 18
Compression:
Stored size: 699 Bytes
Contents
# frozen_string_literal: true require "byebug/helpers/var" module Byebug # # Reopens the +var+ command to define the +local+ subcommand # class VarCommand < Command # # Shows local variables in current scope # class LocalCommand < Command include Helpers::VarHelper self.allow_in_post_mortem = true def self.regexp /^\s* l(?:ocal)? \s*$/x end def self.description <<-DESCRIPTION v[ar] l[ocal] #{short_description} DESCRIPTION end def self.short_description "Shows local variables in current scope." end def execute var_local end end end end
Version data entries
18 entries across 18 versions & 8 rubygems