Sha256: 1e5e0f9c7577c83189934db3737423d440d08898dbf01ead8495d240db0ba1d5
Contents?: true
Size: 426 Bytes
Versions: 43
Compression:
Stored size: 426 Bytes
Contents
# frozen_string_literal: true module Mutant # An AST Parser class Parser include Adamantium::Mutable, Equalizer.new # Initialize object # # @return [undefined] def initialize @cache = {} end # Parse path into AST # # @param [Pathname] path # # @return [AST::Node] def call(path) @cache[path] ||= Unparser.parse(path.read) end end # Parser end # Mutant
Version data entries
43 entries across 43 versions & 1 rubygems