Top Level Namespace

Defined Under Namespace

Modules: AutoReload

Instance Method Summary collapse

Instance Method Details

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

Reload features automatically at given intervals.

Parameters:

  • options (defaults to: {})

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

Options Hash (options):

  • :interval (Object)

    Seconds between updates.

  • :verbose (Object)

    True provides reload warning.

  • :reprime (Object)

    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