Sha256: 63d38aab8347e0ca2792bcaf0318793c1b24b2cd0c996b7713c97b18a37a2dc7
Contents?: true
Size: 376 Bytes
Versions: 1
Compression:
Stored size: 376 Bytes
Contents
# frozen_string_literal: true require_relative '../base_adapter' class ActiveSet module Paginate class EnumerableAdapter < BaseAdapter def process(set) @set = set @set.each_slice(pagesize).take(page_number).last end private def pagesize @value end def page_number @key end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeset-0.1.0 | lib/active_set/paginate/enumerable_adapter.rb |