module MethodIntrospection::CodeHelpers::IncompleteExpression

#

IncompleteExpression

IncompleteExpression is an exception matcher that matches only subsets of SyntaxErrors that can be fixed by adding more input to the buffer.

#

Constants

GENERIC_REGEXPS
#

GENERIC_REGEXPS

We only have to handle MRI.

#

Public Class Methods

===(exception) click to toggle source
#

IncompleteExpression.===

#
# File lib/method_introspection/code_helpers.rb, line 189
def self.===(exception)
  return false unless SyntaxError === exception
  case exception.message
  when *GENERIC_REGEXPS
    true
  else
    false
  end
end