Module: BootstrapPager::Helpers::Link
- Defined in:
- lib/bootstrap_pager/helpers/tags.rb
Overview
Tag that contains a link
Instance Method Summary collapse
-
#page ⇒ Object
target page number.
-
#to_s(locals = {}) ⇒ Object
:nodoc:.
-
#url ⇒ Object
the link’s href.
Instance Method Details
#page ⇒ Object
target page number
36 37 38 |
# File 'lib/bootstrap_pager/helpers/tags.rb', line 36 def page raise 'Override page with the actual page value to be a Page.' end |
#to_s(locals = {}) ⇒ Object
:nodoc:
43 44 45 |
# File 'lib/bootstrap_pager/helpers/tags.rb', line 43 def to_s(locals = {}) #:nodoc: super locals.merge(:url => url) end |
#url ⇒ Object
the link’s href
40 41 42 |
# File 'lib/bootstrap_pager/helpers/tags.rb', line 40 def url page_url_for page end |