Method: Velocity::Instance::Query::Sort#initialize
- Defined in:
- lib/acceleration/velocity.rb
#initialize(args) ⇒ Sort
call-seq:
new(:order => order, :xpath => xpath)
Create a new Sort helper
362 363 364 365 |
# File 'lib/acceleration/velocity.rb', line 362 def initialize(args) @xpath = args[:xpath] @order = args[:order] || VALID_ORDERS.first end |