Class: Kaminari::Helpers::Page

Inherits:
Tag
  • Object
show all
Includes:
Link
Defined in:
lib/kaminari/helpers/tags.rb

Overview

A page

Instance Method Summary collapse

Methods included from Link

#url

Methods inherited from Tag

#initialize, #page_url_for, #partial_path

Constructor Details

This class inherits a constructor from Kaminari::Helpers::Tag

Instance Method Details

#pageObject

target page number



61
62
63
# File 'lib/kaminari/helpers/tags.rb', line 61

def page
  @options[:page]
end

#to_s(locals = {}) ⇒ Object

:nodoc:



64
65
66
# File 'lib/kaminari/helpers/tags.rb', line 64

def to_s(locals = {}) #:nodoc:
  super locals.merge(:page => page)
end