Methods

MethodSource::CodeHelpers::IncompleteExpression

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

Public Class Methods

===(ex) click to toggle source
# File lib/method_source/code_helpers.rb, line 137
def self.===(ex)
  return false unless SyntaxError === ex
  case ex.message
  when *GENERIC_REGEXPS
    true
  when *RBX_ONLY_REGEXPS
    rbx?
  else
    false
  end
end
rbx?() click to toggle source
# File lib/method_source/code_helpers.rb, line 149
def self.rbx?
  RbConfig::CONFIG['ruby_install_name'] == 'rbx'
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.