Class: Guard::Group
- Inherits:
-
Object
- Object
- Guard::Group
- Defined in:
- lib/guard/group.rb
Overview
A group of Guards. There are two reasons why you want to group your guards:
-
You can start only certain Groups from the command line by passing the ‘–group` option.
-
Abort task execution chain on failure within a group.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Group
constructor
Initialize a Group.
Constructor Details
#initialize(name, options = {}) ⇒ Group
Initialize a Group.
30 31 32 33 |
# File 'lib/guard/group.rb', line 30 def initialize(name, = {}) @name = name.to_sym @options = end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/guard/group.rb', line 21 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
21 22 23 |
# File 'lib/guard/group.rb', line 21 def @options end |