From 30ad78288892fc38ed79a862d773a0e2b3c024d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20B=C3=B6hme?= Date: Thu, 5 Sep 2024 21:46:54 +0200 Subject: [PATCH] Update documentation to include `move_to_end` --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e6b2ce1..b65a19b 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,11 @@ When using [Locking](#locking) it is **discouraged** to use `move_to` without pa
move_to_top(**options, &block) -Alias to [`move_to(0, **options, &block)`](#move_to) +Alias to [`move_to(0, ...)`](#move_to) +
+move_to_end(**options, &block) + +Like [`move_to`](#move_to) but moves the element to the end of the collection.
@@ -185,7 +189,11 @@ If an update is needed, the method will return the result of `save`, otherwise `
move_to_top!(**options) -Alias to [`move_to!(0, **options)`](#move_to!) +Like [`move_to!`](#move_to!) but moves the element to the top of the collection. +
+move_to_end!(**options) + +Like [`move_to!`](#move_to!) but moves the element to the end of the collection.