class Byebug::InfoCommand::ArgsSubcommand


Information about arguments of the current method/block

def description

def description
  <<-EOD
    inf[o] a[args]
    #{short_description}
  EOD
end

def execute

def execute
  locals = @state.context.frame_locals
  args = @state.context.frame_args
  return if args == [[:rest]]
  args.map do |_, name|
    s = "#{name} = #{locals[name].inspect}"
    s[Setting[:width] - 3..-1] = '...' if s.size > Setting[:width]
    puts s
  end
end

def regexp

def regexp
  /^\s* a(?:rgs)? \s*$/x
end

def short_description

def short_description
  'Information about arguments of the current method/block'
end