Method: Prism::SelfNode#===

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.



16225
16226
16227
# File 'lib/prism/node.rb', line 16225

def ===(other)
  other.is_a?(SelfNode)
end