Module: Arel::Attribute::Predications
- Included in:
- Arel::Attribute
- Defined in:
- lib/arel/algebra/attributes/attribute.rb
Instance Method Summary collapse
- #eq(other) ⇒ Object
- #eq_all(*others) ⇒ Object
- #eq_any(*others) ⇒ Object
- #gt(other) ⇒ Object
- #gt_all(*others) ⇒ Object
- #gt_any(*others) ⇒ Object
- #gteq(other) ⇒ Object
- #gteq_all(*others) ⇒ Object
- #gteq_any(*others) ⇒ Object
- #in(other) ⇒ Object
- #in_all(*others) ⇒ Object
- #in_any(*others) ⇒ Object
- #lt(other) ⇒ Object
- #lt_all(*others) ⇒ Object
- #lt_any(*others) ⇒ Object
- #lteq(other) ⇒ Object
- #lteq_all(*others) ⇒ Object
- #lteq_any(*others) ⇒ Object
- #matches(other) ⇒ Object
- #matches_all(*others) ⇒ Object
- #matches_any(*others) ⇒ Object
- #not_eq(other) ⇒ Object
- #not_eq_all(*others) ⇒ Object
- #not_eq_any(*others) ⇒ Object
- #not_in(other) ⇒ Object
- #not_in_all(*others) ⇒ Object
- #not_in_any(*others) ⇒ Object
- #not_matches(other) ⇒ Object
- #not_matches_all(*others) ⇒ Object
- #not_matches_any(*others) ⇒ Object
Instance Method Details
#eq(other) ⇒ Object
85 86 87 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 85 def eq(other) Predicates::Equality.new(self, other) end |
#eq_all(*others) ⇒ Object
93 94 95 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 93 def eq_all(*others) Predicates::All.build(Predicates::Equality, self, *others) end |
#eq_any(*others) ⇒ Object
89 90 91 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 89 def eq_any(*others) Predicates::Any.build(Predicates::Equality, self, *others) end |
#gt(other) ⇒ Object
133 134 135 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 133 def gt(other) Predicates::GreaterThan.new(self, other) end |
#gt_all(*others) ⇒ Object
141 142 143 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 141 def gt_all(*others) Predicates::All.build(Predicates::GreaterThan, self, *others) end |
#gt_any(*others) ⇒ Object
137 138 139 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 137 def gt_any(*others) Predicates::Any.build(Predicates::GreaterThan, self, *others) end |
#gteq(other) ⇒ Object
145 146 147 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 145 def gteq(other) Predicates::GreaterThanOrEqualTo.new(self, other) end |
#gteq_all(*others) ⇒ Object
153 154 155 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 153 def gteq_all(*others) Predicates::All.build(Predicates::GreaterThanOrEqualTo, self, *others) end |
#gteq_any(*others) ⇒ Object
149 150 151 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 149 def gteq_any(*others) Predicates::Any.build(Predicates::GreaterThanOrEqualTo, self, *others) end |
#in(other) ⇒ Object
181 182 183 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 181 def in(other) Predicates::In.new(self, other) end |
#in_all(*others) ⇒ Object
189 190 191 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 189 def in_all(*others) Predicates::All.build(Predicates::In, self, *others) end |
#in_any(*others) ⇒ Object
185 186 187 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 185 def in_any(*others) Predicates::Any.build(Predicates::In, self, *others) end |
#lt(other) ⇒ Object
109 110 111 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 109 def lt(other) Predicates::LessThan.new(self, other) end |
#lt_all(*others) ⇒ Object
117 118 119 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 117 def lt_all(*others) Predicates::All.build(Predicates::LessThan, self, *others) end |
#lt_any(*others) ⇒ Object
113 114 115 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 113 def lt_any(*others) Predicates::Any.build(Predicates::LessThan, self, *others) end |
#lteq(other) ⇒ Object
121 122 123 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 121 def lteq(other) Predicates::LessThanOrEqualTo.new(self, other) end |
#lteq_all(*others) ⇒ Object
129 130 131 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 129 def lteq_all(*others) Predicates::All.build(Predicates::LessThanOrEqualTo, self, *others) end |
#lteq_any(*others) ⇒ Object
125 126 127 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 125 def lteq_any(*others) Predicates::Any.build(Predicates::LessThanOrEqualTo, self, *others) end |
#matches(other) ⇒ Object
157 158 159 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 157 def matches(other) Predicates::Match.new(self, other) end |
#matches_all(*others) ⇒ Object
165 166 167 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 165 def matches_all(*others) Predicates::All.build(Predicates::Match, self, *others) end |
#matches_any(*others) ⇒ Object
161 162 163 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 161 def matches_any(*others) Predicates::Any.build(Predicates::Match, self, *others) end |
#not_eq(other) ⇒ Object
97 98 99 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 97 def not_eq(other) Predicates::Inequality.new(self, other) end |
#not_eq_all(*others) ⇒ Object
105 106 107 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 105 def not_eq_all(*others) Predicates::All.build(Predicates::Inequality, self, *others) end |
#not_eq_any(*others) ⇒ Object
101 102 103 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 101 def not_eq_any(*others) Predicates::Any.build(Predicates::Inequality, self, *others) end |
#not_in(other) ⇒ Object
193 194 195 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 193 def not_in(other) Predicates::NotIn.new(self, other) end |
#not_in_all(*others) ⇒ Object
201 202 203 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 201 def not_in_all(*others) Predicates::All.build(Predicates::NotIn, self, *others) end |
#not_in_any(*others) ⇒ Object
197 198 199 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 197 def not_in_any(*others) Predicates::Any.build(Predicates::NotIn, self, *others) end |
#not_matches(other) ⇒ Object
169 170 171 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 169 def not_matches(other) Predicates::NotMatch.new(self, other) end |
#not_matches_all(*others) ⇒ Object
177 178 179 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 177 def not_matches_all(*others) Predicates::All.build(Predicates::NotMatch, self, *others) end |
#not_matches_any(*others) ⇒ Object
173 174 175 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 173 def not_matches_any(*others) Predicates::Any.build(Predicates::NotMatch, self, *others) end |