Method: Prism::IntegerNode#===

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.



9342
9343
9344
9345
9346
# File 'lib/prism/node.rb', line 9342

def ===(other)
  other.is_a?(IntegerNode) &&
    (flags === other.flags) &&
    (value === other.value)
end