Method: Library#require

Defined in:
lib/library.rb

#require(pathname, options = {}) ⇒ Object

Requre feature from library.



370
371
372
373
374
375
376
# File 'lib/library.rb', line 370

def require(pathname, options={})
  if feature = find(pathname, options)
    feature.require(options)
  else
    raise LoadError.new(path, name)  # TODO: silently?
  end
end