Class: Prism::NodeFind::Find
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Inherits: | Object |
| Defined in: | lib/prism/node_find.rb |
Overview
Base class that handles parsing a file.
Instance Method Summary
-
#parse_file(file)
private
Parse the given file path, returning a
::Prism::ParseResultor nil.
Instance Method Details
#parse_file(file) (private)
Parse the given file path, returning a ::Prism::ParseResult or nil.
# 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