lib/castaddon/node_common.rb in bones-compiler-1.3.1 vs lib/castaddon/node_common.rb in bones-compiler-1.6.0

- old
+ new

@@ -150,9 +150,15 @@ # class. Otherwise, it returns 'false'. def or? return (self.class == C::Or) end + # This method returns 'true' if the node is of the 'Equal' + # class. Otherwise, it returns 'false'. + def equality? + return (self.class == C::Equal) + end + # This method returns 'true' if the node is of the 'Less' # class. Otherwise, it returns 'false'. def less? return (self.class == C::Less) end