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
74
75
76
|
# File 'lib/active_record/refined/ast.rb', line 74
def as(alias_name)
As.new(self, alias_name)
end
|
#asc ⇒ Object
78
79
80
|
# File 'lib/active_record/refined/ast.rb', line 78
def asc
Ordering.new(self, :asc)
end
|
#desc ⇒ Object
82
83
84
|
# File 'lib/active_record/refined/ast.rb', line 82
def desc
Ordering.new(self, :desc)
end
|
#to_arel(table) ⇒ Object
70
71
72
|
# File 'lib/active_record/refined/ast.rb', line 70
def to_arel(table)
raise ScriptError, "subclass must override this method"
end
|