class Udongo::WillPaginate::Options
Public Class Methods
new(options = {})
click to toggle source
# File lib/udongo/will_paginate/options.rb, line 6 def initialize(options = {}) @options = options || {} end
Public Instance Methods
defaults()
click to toggle source
# File lib/udongo/will_paginate/options.rb, line 10 def defaults { class: 'pagination', inner_window: 1, outer_window: 0, renderer: Udongo::WillPaginate::Renderer, previous_label: previous_label, next_label: next_label } end
next_label()
click to toggle source
# File lib/udongo/will_paginate/options.rb, line 21 def next_label nav_label('→', 'next_label') end
previous_label()
click to toggle source
# File lib/udongo/will_paginate/options.rb, line 25 def previous_label nav_label('←', 'previous_label') end
values()
click to toggle source
# File lib/udongo/will_paginate/options.rb, line 35 def values @options.reverse_merge!(defaults) end