Method: CodeNode::SpecHelpers::DotFile#has_match?
- Defined in:
- lib/code_node/spec_helpers/dot_file.rb
#has_match?(pattern) ⇒ Boolean
37 38 39 40 41 |
# File 'lib/code_node/spec_helpers/dot_file.rb', line 37 def has_match?(pattern) if exists? !!(pattern =~ File.read(@filename)) end end |