class SimplePaginate::Helpers::Paginator
Public Class Methods
new(template, options)
click to toggle source
Calls superclass method
# File lib/simple_paginate/helpers/paginator.rb, line 9 def initialize(template, options) super template, options.merge(current_page: PageProxy.new(options)) @output_buffer = ActionView::OutputBuffer.new end
Public Instance Methods
next_page_tag()
click to toggle source
# File lib/simple_paginate/helpers/paginator.rb, line 23 def next_page_tag NextPage.new @template, @options end
prev_page_tag()
click to toggle source
# File lib/simple_paginate/helpers/paginator.rb, line 19 def prev_page_tag PrevPage.new @template, @options end
render(&block)
click to toggle source
# File lib/simple_paginate/helpers/paginator.rb, line 14 def render(&block) instance_eval(&block) @output_buffer end
to_s()
click to toggle source
Calls superclass method
# File lib/simple_paginate/helpers/paginator.rb, line 27 def to_s super @options.merge(paginator: self) end