forked from brynary/arel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove short circuit evaluation and leave AST as it is
- Loading branch information
Showing
2 changed files
with
0 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,6 @@ | ||
module Arel | ||
module Nodes | ||
class False < Arel::Nodes::Node | ||
def not | ||
True.new | ||
end | ||
|
||
def or right | ||
right | ||
end | ||
|
||
def and right | ||
self | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,6 @@ | ||
module Arel | ||
module Nodes | ||
class True < Arel::Nodes::Node | ||
def not | ||
False.new | ||
end | ||
|
||
def or right | ||
self | ||
end | ||
|
||
def and right | ||
right | ||
end | ||
end | ||
end | ||
end |