123456789_123456789_123456789_123456789_123456789_

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

Instance Method Details

#parse_file(file) (private)

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

[ GitHub ]

  
# 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