Class: ActiveRecord::Refined::AST::Node
- Inherits:
-
Object
- Object
- ActiveRecord::Refined::AST::Node
show all
- Defined in:
- lib/active_record/refined/ast.rb
Instance Method Summary
collapse
Instance Method Details
#as(alias_name) ⇒ Object
9
10
11
|
# File 'lib/active_record/refined/ast.rb', line 9
def as(alias_name)
As.new(self, alias_name)
end
|
#asc ⇒ Object
13
14
15
|
# File 'lib/active_record/refined/ast.rb', line 13
def asc
Ordering.new(self, :asc)
end
|
#desc ⇒ Object
17
18
19
|
# File 'lib/active_record/refined/ast.rb', line 17
def desc
Ordering.new(self, :desc)
end
|
#to_arel(table) ⇒ Object
5
6
7
|
# File 'lib/active_record/refined/ast.rb', line 5
def to_arel(table)
raise ScriptError, "subclass must override this method"
end
|