Sha256: ce43b384c40d91924c5463cdaeeb2866fdd04967e54f8ecb7e411ef83d4ae6d7

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

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
    #   should be halted for all Guards in this group if one Guard throws `:task_has_failed`
    #
    def initialize(name, options = {})
      @name    = name.to_sym
      @options = options
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
guard-0.8.1 lib/guard/group.rb