Class: BootstrapPager::Helpers::Page

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

Overview

A page

Instance Method Summary collapse

Methods included from Link

#url

Methods inherited from Tag

#initialize, #page_url_for

Constructor Details

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

Instance Method Details

#pageObject

target page number


54
55
56
# File 'lib/bootstrap_pager/helpers/tags.rb', line 54

def page
  @options[:page]
end

#to_s(locals = {}) ⇒ Object

:nodoc:


57
58
59
# File 'lib/bootstrap_pager/helpers/tags.rb', line 57

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