Top Level Namespace

Defined Under Namespace

Modules: AutoReload

Instance Method Summary collapse

Instance Method Details

#autoreload(options = {}, &block) ⇒ Object

Reload features automatically at given intervals.

options - The Hash options used to refine the reloader (default: {}):

:interval - Seconds between updates.
:verbose  - True provides reload warning.
:reprime  - Include $0 in reload list.

Returns Thread that's taking care of reload loop.


12
13
14
# File 'lib/autoreload.rb', line 12

def autoreload(options={}, &block)
  AutoReload::Reloader.start(options, &block)
end