Module: PryByebug::Helpers::Multiline

Included in:
BreakCommand, NextCommand
Defined in:
lib/pry-byebug/helpers/multiline.rb

Overview

Helpers to help handling multiline inputs

Instance Method Summary collapse

Instance Method Details

#check_multiline_contextObject

Returns true if we are in a multiline context and, as a side effect, updates the partial evaluation string with the current input.

Returns false otherwise



13
14
15
16
17
18
# File 'lib/pry-byebug/helpers/multiline.rb', line 13

def check_multiline_context
  return false if eval_string.empty?

  eval_string.replace("#{eval_string}#{match} #{arg_string}\n")
  true
end