aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/node.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes/node.rb')
-rw-r--r--lib/arel/nodes/node.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/arel/nodes/node.rb b/lib/arel/nodes/node.rb
index 43bad19488..841b954db9 100644
--- a/lib/arel/nodes/node.rb
+++ b/lib/arel/nodes/node.rb
@@ -4,6 +4,13 @@ module Arel
# Abstract base class for all AST nodes
class Node
###
+ # Factory method to create a Nodes::Not node that has the recipient of
+ # the caller as a child.
+ def not
+ Nodes::Not.new self
+ end
+
+ ###
# Factory method to create a Nodes::Grouping node that has an Nodes::Or
# node as a child.
def or right