class FileContentRule
Attributes
file_content_pattern[RW]
file_name[RW]
Public Instance Methods
matches?(repository)
click to toggle source
# File lib/technologist/rules/file_content_rule.rb, line 6 def matches?(repository) !!repository.file_with_content_exists?(file_name) do |content| content =~ /#{file_content_pattern}/ end end