Class: SQL::Composer::Nodes::Order
- Defined in:
- lib/sql/composer/nodes/order.rb
Instance Attribute Summary
Attributes inherited from Core
Instance Method Summary collapse
Methods inherited from Core
#backend, #fetch, #initialize, #quote
Constructor Details
This class inherits a constructor from SQL::Composer::Nodes::Core
Instance Method Details
#operations ⇒ Object
9 10 11 |
# File 'lib/sql/composer/nodes/order.rb', line 9 def operations fetch(:operations) end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/sql/composer/nodes/order.rb', line 13 def to_s "ORDER BY #{operations.map(&:to_s).join(', ')}" end |