GH-48488: [GLib][Ruby] Add GArrowListSliceOptions
Rationale for this change
The ListSliceOptions class is not available in GLib/Ruby, and it is used together with the list_slice compute function.
What changes are included in this PR?
This adds the ListSliceOptions class to GLib.
Are these changes tested?
Yes, with Ruby unit tests.
Are there any user-facing changes?
Yes, a new class.
- GitHub Issue: #48488
:warning: GitHub issue #48488 has been automatically assigned in GitHub to PR creator.
The property return_fixed_size_list has the type std::optional<bool>. While it would make sense in Ruby, I couldn't figure out how to set a boolean to null in GLib, so I created an enum instead.
Good idea! I added Ruby wrappers for both the return_fixed_size_array and stop methods.
Unfortunately the tests fails due to https://github.com/apache/arrow/issues/48610.