77 78 79 80 81
# File 'lib/balanced/pager.rb', line 77 def num_pages num = total / limit num += 1 if total % limit > 0 num end