Parent

Methods

Included Modules

Files

Guard::Guard

@deprecated Inheriting from `Guard::Guard` is deprecated, please inherit

from {Plugin} instead. Please note that the constructor signature has
changed from `Guard::Guard#initialize(watchers = [], options = {})` to
`Guard::Plugin#initialize(options = {})`.

@see github.com/guard/guard/wiki/Upgrading-to-Guard-2.0 How to

upgrade for Guard 2.0

Public Class Methods

new(watchers = [], options = {}) click to toggle source

@deprecated Inheriting from `Guard::Guard` is deprecated, please inherit

from {Plugin} instead. Please note that the constructor signature
has changed from `Guard::Guard#initialize(watchers = [], options = {})`
to `Guard::Plugin#initialize(options = {})`.

Initializes a Guard plugin. Don't do any work here,

especially as Guard plugins get initialized even if they are not in an
active group!

@see github.com/guard/guard/wiki/Upgrading-to-Guard-2.0 How to

upgrade for Guard 2.0

@param [Array<Guard::Watcher>] watchers the Guard plugin file watchers @param [Hash] options the custom Guard plugin options @option options [Symbol] group the group this Guard plugin belongs to @option options [Boolean] any_return allow any object to be returned from

a watcher
# File lib/guard/guard.rb, line 34
def initialize(watchers = [], options = {})
  ::Guard::UI.deprecation(::Guard::Deprecator::GUARD_GUARD_DEPRECATION % title)

  _set_instance_variables_from_options(options.merge(watchers: watchers))
  _register_callbacks
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.