Class: SimplePaginate::Helpers::Paginator
- Includes:
- ActionView::Context
- Defined in:
- lib/simple_paginate/helpers/paginator.rb
Defined Under Namespace
Classes: PageProxy
Instance Method Summary collapse
-
#initialize(template, options) ⇒ Paginator
constructor
A new instance of Paginator.
- #next_page_tag ⇒ Object
- #prev_page_tag ⇒ Object
- #render(&block) ⇒ Object
- #to_s ⇒ Object
Methods inherited from Tag
Constructor Details
Instance Method Details
#next_page_tag ⇒ Object
23 24 25 |
# File 'lib/simple_paginate/helpers/paginator.rb', line 23 def next_page_tag NextPage.new @template, @options end |
#prev_page_tag ⇒ Object
19 20 21 |
# File 'lib/simple_paginate/helpers/paginator.rb', line 19 def prev_page_tag PrevPage.new @template, @options end |
#render(&block) ⇒ Object
14 15 16 17 |
# File 'lib/simple_paginate/helpers/paginator.rb', line 14 def render(&block) instance_eval(&block) @output_buffer end |
#to_s ⇒ Object
27 28 29 |
# File 'lib/simple_paginate/helpers/paginator.rb', line 27 def to_s super @options.merge(paginator: self) end |