Method: AST::Node#eql?

Defined in:
lib/ast/node.rb

#eql?(other) ⇒ Boolean

Test if other object is equal to

Parameters:

  • other (Object)

Returns:

  • (Boolean)


85
86
87
88
89
# File 'lib/ast/node.rb', line 85

def eql?(other)
  self.class.eql?(other.class)   &&
  @type.eql?(other.type)         &&
  @children.eql?(other.children)
end