class Prism::NodeFind::Find - Documentation for Ruby 4.1
Description: class Prism::NodeFind::Find: Base class that handles parsing a file.
Keywords: ruby,class,Prism::NodeFind::Find

🔍

No recent searches

# class Prism::NodeFind::Find

Base class that handles parsing a file.

### Private Instance Methods

parse_file (file)
Source

    # File lib/prism/node_find.rb, line 52
    def parse_file(file)
      return unless file && File.readable?(file)
      result = Prism.parse_file(file)
      result if result.success?
    end

Parse the given file path, returning a `ParseResult` or nil.