lib/pagy/extras/array.rb in pagy-5.1.3 vs lib/pagy/extras/array.rb in pagy-5.2.0

- old
+ new

@@ -1,9 +1,9 @@ # See the Pagy documentation: https://ddnexus.github.io/pagy/extras/array # frozen_string_literal: true -class Pagy - # Add specialized backend methods to paginate array collections +class Pagy # :nodoc: + # Paginate arrays efficiently, avoiding expensive array-wrapping and without overriding module ArrayExtra private # Return Pagy object and items def pagy_array(array, vars = {})