Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Includes:
- Squeel::Nodes::Aliasing, Squeel::PredicateMethods
- Defined in:
- lib/core_ext/symbol.rb
Overview
These extensions to Symbol are loaded optionally, mostly to provide a small amount of backwards compatibility with MetaWhere.
Instance Method Summary collapse
- #asc ⇒ Object
- #desc ⇒ Object
- #func(*args) ⇒ Object
- #inner ⇒ Object
- #of_class(klass) ⇒ Object
- #outer ⇒ Object
Methods included from Squeel::Nodes::Aliasing
Instance Method Details
#asc ⇒ Object
15 16 17 |
# File 'lib/core_ext/symbol.rb', line 15 def asc Squeel::Nodes::Order.new self, 1 end |
#desc ⇒ Object
19 20 21 |
# File 'lib/core_ext/symbol.rb', line 19 def desc Squeel::Nodes::Order.new self, -1 end |
#func(*args) ⇒ Object
23 24 25 |
# File 'lib/core_ext/symbol.rb', line 23 def func(*args) Squeel::Nodes::Function.new(self, args) end |
#inner ⇒ Object
27 28 29 |
# File 'lib/core_ext/symbol.rb', line 27 def inner Squeel::Nodes::Join.new(self, Arel::InnerJoin) end |