method
match_file
v8.1.1 -
Show latest stable
- Class:
Rails::Generators::Actions
match_file(path, pattern)private
No documentation available.
# File railties/lib/rails/generators/actions.rb, line 516
def match_file(path, pattern)
File.read(path).match(pattern) if File.exist?(path)
end