# File lib/guard/guardfile.rb, line 41
      def duplicate_definitions?(guard_class, guard_file)
        matches = guard_file.to_s.scan(/guard\s[\'|\"]#{guard_class}[\'|\"]\sdo/)
        if matches.count > 1
          ::Guard::UI.info "There are #{matches.count.to_s} definitions in your Guardfile for '#{guard_class}', you may want to clean up your Guardfile as this could cause issues."
          return true
        else
          return false
        end
      end