Class: ActiveRecord::Refined::AST::Node
- Inherits:
-
Object
- Object
- ActiveRecord::Refined::AST::Node
show all
- Defined in:
- lib/active_record/refined/ast.rb
Direct Known Subclasses
Aggregate, Arithmetic, As, Cast, Column, DatetimeValueFunction, Extract, Function, Ordering, Predicate, Value
Instance Method Summary
collapse
Instance Method Details
#as(alias_name) ⇒ Object
225
226
227
|
# File 'lib/active_record/refined/ast.rb', line 225
def as(alias_name)
As.new(self, alias_name)
end
|
#asc ⇒ Object
229
230
231
|
# File 'lib/active_record/refined/ast.rb', line 229
def asc
Ordering.new(self, :asc)
end
|
#desc ⇒ Object
233
234
235
|
# File 'lib/active_record/refined/ast.rb', line 233
def desc
Ordering.new(self, :desc)
end
|
#to_arel(table) ⇒ Object
221
222
223
|
# File 'lib/active_record/refined/ast.rb', line 221
def to_arel(table)
raise ScriptError, "subclass must override this method"
end
|