Module: Hx::Listing
- Defined in:
- lib/hx/listing.rb,
lib/hx/listing/limit.rb,
lib/hx/listing/paginate.rb,
lib/hx/listing/flatindex.rb,
lib/hx/listing/datearchive.rb,
lib/hx/listing/recursiveindex.rb
Defined Under Namespace
Classes: DateArchive, FlatIndex, Limit, Paginate, RecursiveIndex
Class Method Summary
collapse
Class Method Details
.apply_options(listing, options) ⇒ Object
30
31
32
33
34
35
36
37
38
|
# File 'lib/hx/listing.rb', line 30
def self.apply_options(listing, options)
if options.has_key? :limit
listing = Limit.new(listing, :limit => options[:limit])
end
if options.has_key? :page_size
listing = Paginate.new(listing, :page_size => options[:page_size])
end
listing
end
|