Class: Radiant::Pagination::LinkRenderer

Inherits:
WillPaginate::ViewHelpers::LinkRenderer
  • Object
show all
Defined in:
lib/radiant/pagination/link_renderer.rb

Instance Method Summary collapse

Constructor Details

#initialize(url_stem) ⇒ LinkRenderer

Returns a new instance of LinkRenderer.



4
5
6
# File 'lib/radiant/pagination/link_renderer.rb', line 4

def initialize(url_stem)
  @url_stem = url_stem
end

Instance Method Details

#url(page) ⇒ Object



8
9
10
# File 'lib/radiant/pagination/link_renderer.rb', line 8

def url(page)
  "#{@url_stem}?#{param_name}=#{page}"
end