Method: Sequel::SQL::StringAgg#order
- Defined in:
- lib/sequel/extensions/string_agg.rb
#order(*o) ⇒ Object
Return a modified StringAgg with the given order
182 183 184 185 186 187 |
# File 'lib/sequel/extensions/string_agg.rb', line 182 def order(*o) self.class.new(@expr, @separator) do |sa| sa.instance_variable_set(:@order_expr, o.empty? ? nil : o.freeze) sa.instance_variable_set(:@distinct, @distinct) end end |