Class: SimplePaginate::Helpers::Page

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

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 SimplePaginate::Helpers::Tag

Instance Method Details

#pageObject



59
60
61
# File 'lib/simple_paginate/helpers/tags.rb', line 59

def page
  @options[:page]
end

#to_s(locals = {}) ⇒ Object



63
64
65
# File 'lib/simple_paginate/helpers/tags.rb', line 63

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