Class: Guard::Group
- Inherits:
-
Object
- Object
- Guard::Group
- Defined in:
- lib/guard/group.rb
Overview
A group of Guard plugins. There are two reasons why you want to group your Guard plugins:
- You can start only certain groups from the command line by passing the
--group
option toguard start
. - Abort task execution chain on failure within a group with the
:halt_on_fail
option.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#title ⇒ String
Returns the group title.
-
#to_s ⇒ String
String representation of the group.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
27 28 29 |
# File 'lib/guard/group.rb', line 27 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
27 28 29 |
# File 'lib/guard/group.rb', line 27 def @options end |
Instance Method Details
#title ⇒ String
Returns the group title.
51 52 53 |
# File 'lib/guard/group.rb', line 51 def title @title ||= name.to_s.capitalize end |
#to_s ⇒ String
String representation of the group.
63 64 65 |
# File 'lib/guard/group.rb', line 63 def to_s "#<#{self.class} @name=#{name} @options=#{}>" end |