Method: Prism::BlockArgumentNode#===

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.



1524
1525
1526
1527
1528
# File 'lib/prism/node.rb', line 1524

def ===(other)
  other.is_a?(BlockArgumentNode) &&
    (expression === other.expression) &&
    (operator_loc.nil? == other.operator_loc.nil?)
end