Module: Kernel

Defined in:
lib/cannon/app.rb

Instance Method Summary collapse

Instance Method Details

#reload(lib) ⇒ Object



189
190
191
192
193
194
195
# File 'lib/cannon/app.rb', line 189

def reload(lib)
  if old = $LOADED_FEATURES.find{ |path| path=~/#{Regexp.escape lib}(\.rb)?\z/ }
    load old
  else
    require lib
  end
end