class Guard::Dsl

def guardfile_include?(guard_name)

Returns:
  • (Boolean) - whether the Guard has been declared

Parameters:
  • guard_name (String) -- the name of the Guard
def guardfile_include?(guard_name)
  guardfile_contents.match(/^guard\s*\(?\s*['":]#{ guard_name }['"]?/)
end