lib/ravensat/ast/node.rb in ravensat-1.0.6 vs lib/ravensat/ast/node.rb in ravensat-1.0.7

- old
+ new

@@ -61,13 +61,15 @@ self if block_given? end def &(object) + raise TypeError.new("#{object.class} can't be coerced into Ravensat::Node") unless object.is_a? Node AndNode.new(self, object) end def |(object) + raise TypeError.new("#{object.class} can't be coerced into Ravensat::Node") unless object.is_a? Node OrNode.new(self, object) end def to_s self.class.name