Class: Dentaku::AST::Equal

Inherits:
Comparator show all
Defined in:
lib/dentaku/ast/comparators.rb

Instance Attribute Summary

Attributes inherited from Operation

#left, #right

Instance Method Summary collapse

Methods inherited from Comparator

precedence, #type, #value

Methods inherited from Operation

#accept, #dependencies, #initialize, max_param_count, min_param_count, right_associative?

Methods inherited from Node

arity, #dependencies, #name, peek, precedence, #type

Constructor Details

This class inherits a constructor from Dentaku::AST::Operation

Instance Method Details

#display_operatorObject



83
84
85
# File 'lib/dentaku/ast/comparators.rb', line 83

def display_operator
  "="
end

#operatorObject



79
80
81
# File 'lib/dentaku/ast/comparators.rb', line 79

def operator
  :==
end