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
93
94
95
|
# File 'lib/active_record/refined/ast.rb', line 93
def as(alias_name)
As.new(self, alias_name)
end
|
#asc ⇒ Object
97
98
99
|
# File 'lib/active_record/refined/ast.rb', line 97
def asc
Ordering.new(self, :asc)
end
|
#desc ⇒ Object
101
102
103
|
# File 'lib/active_record/refined/ast.rb', line 101
def desc
Ordering.new(self, :desc)
end
|
#to_arel(table) ⇒ Object
89
90
91
|
# File 'lib/active_record/refined/ast.rb', line 89
def to_arel(table)
raise ScriptError, "subclass must override this method"
end
|