class GemHadar

def require_path(path = nil)

Returns:
  • (String) - the specified path when setting, or the first require

Parameters:
  • path (String, nil) -- the directory path to set as the require path;
def require_path(path = nil)
  if path
    self.require_paths = Set[path]
    path
  else
    require_paths.first
  end
end