Method: Enforce::DSL#regex
- Defined in:
- lib/enforce/dsl.rb
#regex(content) ⇒ Object
46 47 48 49 |
# File 'lib/enforce/dsl.rb', line 46 def regex(content) pass = File.read(last_file).match?(content) add_result message: "regex `#{content.inspect}`", pass: pass end |