Method: Prism::ConstantPathAndWriteNode#===
- 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.
5031 5032 5033 5034 5035 5036 |
# File 'lib/prism/node.rb', line 5031 def ===(other) other.is_a?(ConstantPathAndWriteNode) && (target === other.target) && (operator_loc.nil? == other.operator_loc.nil?) && (value === other.value) end |