Method: Bmg::Sql::OrderByClause#to_ordering
- Defined in:
- lib/bmg/sql/nodes/order_by_clause.rb
#to_ordering ⇒ Object
8 9 10 11 12 |
# File 'lib/bmg/sql/nodes/order_by_clause.rb', line 8 def to_ordering @ordering ||= sexpr_body.map{|x| [x.as_name.to_sym, x.direction.to_sym] } end |