Method: Prism::ImaginaryNode#===

Defined in:
lib/prism/node.rb

#===(other) ⇒ Object

Implements case-equality for the node. This is effectively == but without comparing the value of locations. Locations are checked only for presence.



7736
7737
7738
7739
# File 'lib/prism/node.rb', line 7736

def ===(other)
  other.is_a?(ImaginaryNode) &&
    (numeric === other.numeric)
end