# File lib/guard/dsl.rb, line 310 def guard(name, options = {}) @watchers = [] @callbacks = [] yield if block_given? options.update(:group => (@current_group || :default)) ::Guard.add_guard(name.to_s.downcase, @watchers, @callbacks, options) end