Module: Kernel

### Home Classes Methods

### In Files

- lib/polyglot.rb

### Methods

- #polyglot_original_require
- #require

### Files

- README.txt

### Class/Module Index

Quicksearch

- Polyglot
- Polyglot::NestedLoadError
- Polyglot::PolyglotLoadError
- Kernel

No matching classes.

# Kernel

### Public Instance Methods

polyglot_original_require(*a, &b) click to toggle source
Alias for: require
require(*a, &b) click to toggle source

    # File lib/polyglot.rb, line 64
    def require(*a, &b)
      polyglot_original_require(*a, &b)
    rescue LoadError => load_error
      begin
        Polyglot.load(*a, &b)
      rescue Polyglot::NestedLoadError => e
        e.reraise
      rescue LoadError
        # Raise the original exception, possibly a MissingSourceFile with a path
        raise load_error
      end
    end

Also aliased as: polyglot_original_require

[Validate]

Generated with the Darkfish Rdoc Generator 2.