lib/janeway/interpreters/tree_constructor.rb
Ruby loads a relative source moduleRuby rebinds a method with alias_method
SHA-2565b7ce8ec13652c26dc37042aa739f7ff353eb2ca83901593a01ed30c9f2f4566
MaleculeH₂(DbOs)
Evidence
1# frozen_string_literal: true
2
3require_relative 'base'
4
5module Janeway
⋯4 lines
9:43… uch as #each has been called to
10 # construct the chain of interpreter objects to handle the query.
11 module TreeConstructor
12 # Fake inter …
13:36… do
14 def interpret(*)
15 value
16 end
17 alias_method :node, :interpret
18 end
19
20 # Return an interpreter for the given AST node.
21 # This interpreter forwards matcheed values to the next interpreter, or
22 # returns them if there …
68:45… ues, but only after
69 # yielding to a block that returns a truthy value.
70 #
71 # @param expr [AST::Expression]
72 # @return [Interprt …