Method: Sequel::Plugins::List::InstanceMethods#move_up
- Defined in:
- lib/sequel/plugins/list.rb
#move_up(n = 1) ⇒ Object
Move this instance the given number of places up in the list, or 1 place if no argument is specified.
166 167 168 |
# File 'lib/sequel/plugins/list.rb', line 166 def move_up(n = 1) move_to(position_value - n) end |