method

match_file

rails latest stable - Class: Rails::Generators::Actions
match_file(path, pattern)
private

No documentation available.

# File railties/lib/rails/generators/actions.rb, line 513
        def match_file(path, pattern)
          File.read(path).match(pattern) if File.exist?(path)
        end