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



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

def page
  @options[:page]
end

#to_s(locals = {}) ⇒ Object



67
68
69
# File 'lib/simple_paginate/helpers/tags.rb', line 67

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