module Guard
def add_group(name, options = {})
-
(Guard::Group)
- the group added (or retrieved from the `@groups` variable if already present)
Options Hash:
(**options)
-
halt_on_fail
(Boolean
) -- if a task execution
Parameters:
-
name
(String
) -- the group name
def add_group(name, options = {}) group = groups(name) if group.nil? group = Group.new(name, options) @groups << group end group end