Methods

Class Index [+]

Quicksearch

Ramaze::Helper::Paginate::Paginator::DataMapperPager

Wrapper for DataMapper::Collection to behave like the Sequel pagination. needs ‘datamapper’ (or ‘dm-core’ and ‘dm-aggregates’)

Public Class Methods

new(*args) click to toggle source
     # File lib/ramaze/helper/paginate.rb, line 290
290:           def initialize(*args)
291:             unless defined?(DataMapper::Aggregates)
292:               Ramaze::Log.warn "paginate.rb: it is strongly " +
293:                                "recommended to require 'dm-aggregates'"
294:             end
295: 
296:             super
297:           end

Public Instance Methods

empty?() click to toggle source
     # File lib/ramaze/helper/paginate.rb, line 303
303:           def empty?
304:             size == 0
305:           end
size() click to toggle source
     # File lib/ramaze/helper/paginate.rb, line 299
299:           def size
300:             @cached_size ||= @array.count
301:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.