Top Level Namespace

Defined Under Namespace

Modules: WPMove

Instance Method Summary collapse

Instance Method Details

#fallback_load_path(path) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'bin/wp-move', line 2

def fallback_load_path(path)
  retried = false
  begin
    yield
  rescue LoadError
    unless retried
      $: << path
      retried = true
      retry
    end
    raise
  end
end