lib/janeway/interpreters/binary_operator_interpreter.rb
Ruby dynamically invokes a method with sendRuby loads a relative source module
SHA-256e30cefe3465da9ceaafb7a8f42edc3dfb98a3ef0d4abc872d9d5f642df367441
MaleculeH₂(DbOs)
Evidence
1# frozen_string_literal: true
2
3require_relative 'base'
4
5module Janeway
6 module Interpreters
7 # Interprets a binary operator within filter selector.
8 class BinaryOperato …
8:38… Base
9 alias operator node
10
11 # Set up the internal interpreter chain for the BinaryOperator.
12 def initialize(operator)
13 super
14 @left = TreeConstructo …
18:11… e binary operators are all comparison operators that test equality.
19 #
20 # * boolean values specified in the query
21 # * JSONPath exp …
23:38… s evaluated, it results in a node list.
24 # This may contain literal values or nodes, whose value must be extracted before comparison.
25 #
26 …
42:41… e binary operator #{operator.name.inspect}"
43 end
44 send(:"interpret_#{operator.name}", lhs, rhs)
45 end
46
47 # Interpret a node and extract its value, in preparation for using th …