class Mutest::Parser

An AST Parser

Public Class Methods

new() click to toggle source

Initialize object

@return [undefined]

# File lib/mutest/parser.rb, line 10
def initialize
  @cache = {}
end

Public Instance Methods

open(path) click to toggle source

Parse path into AST

@param [Pathname] path

@return [AST::Node]

# File lib/mutest/parser.rb, line 19
def open(path)
  @cache[path] ||= SourceFile.read(path)
end