Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added inline doc for template method

  • Loading branch information...
commit 1a5e714693c486161c6bfdbeb4ec316ac3a40b82 1 parent 00fbc16
@schmurfy schmurfy authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/guard/guard.rb
View
6 lib/guard/guard.rb
@@ -58,7 +58,11 @@ def initialize(watchers = [], options = {})
@watchers, @options = watchers, options
end
-
+ # Specify the source for the Guardfile template.
+ # Each Guard plugin can redefine this method to add its own logic.
+ #
+ # @param [String] The plugin name
+ #
def self.template(name)
File.read("#{ ::Guard.locate_guard(name) }/lib/guard/#{ name }/templates/Guardfile")
end
Please sign in to comment.
Something went wrong with that request. Please try again.