Method: Kernel#require_once

Defined in:
lib/quality_extensions/kernel/require_once.rb

#require_once(name) ⇒ Object

Fixes bug in Ruby (1.8, at least – not sure if 2.0 fixes it) where a file can be required twice if the path is spelled differently.

Raises:

  • (NotImplementedError)


13
14
15
16
17
# File 'lib/quality_extensions/kernel/require_once.rb', line 13

def require_once(name)
  raise NotImplementedError
  # store expand_path(name) in an array ($required_files or something)
  # only do the require if it wasn't already in the array
end