diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-05-27 10:07:51 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-05-27 10:07:51 -0300 |
commit | a158a736c821703682fc89bb83d7990e4618b08c (patch) | |
tree | 832aa0281b0eaa932eda77f6e6da0be194db97ae /lib/arel/algebra/attributes/attribute.rb | |
parent | 43bfd3fae496a2a859aad0a654a91437357c3450 (diff) | |
parent | 2ee391231842eec5ce75517c0b24576c1e2a3261 (diff) | |
download | rails-a158a736c821703682fc89bb83d7990e4618b08c.tar.gz rails-a158a736c821703682fc89bb83d7990e4618b08c.tar.bz2 rails-a158a736c821703682fc89bb83d7990e4618b08c.zip |
Merge branch 'master' of github.com:brynary/arel
Diffstat (limited to 'lib/arel/algebra/attributes/attribute.rb')
-rw-r--r-- | lib/arel/algebra/attributes/attribute.rb | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/lib/arel/algebra/attributes/attribute.rb b/lib/arel/algebra/attributes/attribute.rb index 30e26f7584..faa6c068d5 100644 --- a/lib/arel/algebra/attributes/attribute.rb +++ b/lib/arel/algebra/attributes/attribute.rb @@ -85,119 +85,119 @@ module Arel def eq(other) Predicates::Equality.new(self, other) end - + def eq_any(*others) Predicates::Any.build(Predicates::Equality, self, *others) end - + def eq_all(*others) Predicates::All.build(Predicates::Equality, self, *others) end - + def not_eq(other) Predicates::Inequality.new(self, other) end - + def not_eq_any(*others) Predicates::Any.build(Predicates::Inequality, self, *others) end - + def not_eq_all(*others) Predicates::All.build(Predicates::Inequality, self, *others) end - + def lt(other) Predicates::LessThan.new(self, other) end - + def lt_any(*others) Predicates::Any.build(Predicates::LessThan, self, *others) end - + def lt_all(*others) Predicates::All.build(Predicates::LessThan, self, *others) end - + def lteq(other) Predicates::LessThanOrEqualTo.new(self, other) end - + def lteq_any(*others) Predicates::Any.build(Predicates::LessThanOrEqualTo, self, *others) end - + def lteq_all(*others) Predicates::All.build(Predicates::LessThanOrEqualTo, self, *others) end - + def gt(other) Predicates::GreaterThan.new(self, other) end - + def gt_any(*others) Predicates::Any.build(Predicates::GreaterThan, self, *others) end - + def gt_all(*others) Predicates::All.build(Predicates::GreaterThan, self, *others) end - + def gteq(other) Predicates::GreaterThanOrEqualTo.new(self, other) end - + def gteq_any(*others) Predicates::Any.build(Predicates::GreaterThanOrEqualTo, self, *others) end - + def gteq_all(*others) Predicates::All.build(Predicates::GreaterThanOrEqualTo, self, *others) end - + def matches(other) Predicates::Match.new(self, other) end - + def matches_any(*others) Predicates::Any.build(Predicates::Match, self, *others) end - + def matches_all(*others) Predicates::All.build(Predicates::Match, self, *others) end - + def not_matches(other) Predicates::NotMatch.new(self, other) end - + def not_matches_any(*others) Predicates::Any.build(Predicates::NotMatch, self, *others) end - + def not_matches_all(*others) Predicates::All.build(Predicates::NotMatch, self, *others) end - + def in(other) Predicates::In.new(self, other) end - + def in_any(*others) Predicates::Any.build(Predicates::In, self, *others) end - + def in_all(*others) Predicates::All.build(Predicates::In, self, *others) end - + def not_in(other) Predicates::NotIn.new(self, other) end - + def not_in_any(*others) Predicates::Any.build(Predicates::NotIn, self, *others) end - + def not_in_all(*others) Predicates::All.build(Predicates::NotIn, self, *others) end |