Method: Prism::BlockParameterNode#===
- 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.
1825 1826 1827 1828 1829 1830 1831 |
# File 'lib/prism/node.rb', line 1825 def ===(other) other.is_a?(BlockParameterNode) && (flags === other.flags) && (name === other.name) && (name_loc.nil? == other.name_loc.nil?) && (operator_loc.nil? == other.operator_loc.nil?) end |