Module: MethodSource::CodeHelpers::IncompleteExpression

### Home Classes Methods

### In Files

- lib/method_source/code_helpers.rb

### Methods

- ::===
- ::rbx?

### Class/Module Index

Quicksearch

- MethodSource
- MethodSource::CodeHelpers
- MethodSource::CodeHelpers::IncompleteExpression
- MethodSource::ReeSourceLocation
- MethodSource::SourceLocation
- MethodSource::SourceLocation::MethodExtensions
- MethodSource::SourceLocation::ProcExtensions
- MethodSource::SourceLocation::UnboundMethodExtensions

No matching classes.

# MethodSource::CodeHelpers::IncompleteExpression

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

### Constants

GENERIC_REGEXPS
RBX_ONLY_REGEXPS

### 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.