Method: Kernel.load

Defined in:
lib/library/kernel.rb

.load(pathname, options = {}) ⇒ true, false

Load feature - This is the same as acquire except that the :legacy and :load options are fixed as true.

Parameters:

  • pathname (String)

    The pathname of the feature to load.

  • options (Hash) (defaults to: {})

    Load options can be :wrap and :search.

Returns:

  • (true, false)

    if feature was successfully loaded



75
76
77
# File 'lib/library/kernel.rb', line 75

def load(pathname, options={}) #, &block)
  Library.load(pathname, options) #, &block)
end