Class: Radiant::Pagination::LinkRenderer
- Inherits:
-
WillPaginate::ViewHelpers::LinkRenderer
- Object
- WillPaginate::ViewHelpers::LinkRenderer
- Radiant::Pagination::LinkRenderer
- Defined in:
- lib/radiant/pagination/link_renderer.rb
Instance Method Summary collapse
-
#initialize(url_stem) ⇒ LinkRenderer
constructor
A new instance of LinkRenderer.
- #url(page) ⇒ Object
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 |