lib/ravensat/ast/or_node.rb in ravensat-1.0.8 vs lib/ravensat/ast/or_node.rb in ravensat-1.0.9

- old
+ new

@@ -1,8 +1,10 @@ module Ravensat class OrNode < OprNode def |(object) raise TypeError.new("#{object.class} can't be coerced into Ravensat::Node") unless object.is_a? Node + return self if object.is_a? NilNode + @children.append object self end def cnf?