master/lib/guard/group.rb

23 lines
449 B
Ruby
Raw Normal View History

2011-09-22 22:20:35 +00:00
module Guard
# A group of Guards.
#
class Group
attr_accessor :name, :options
# Initialize a Group.
#
# @param [String] name the name of the group
# @option options [Boolean] halt_on_fail if a task execution
2011-09-23 08:52:58 +00:00
# should be halted for all Guards in this group if one Guard throws `:task_has_failed`
2011-09-22 22:20:35 +00:00
#
def initialize(name, options = {})
@name = name.to_sym
@options = options
end
end
end