Module: Lumiere::Playlist
- Defined in:
- lib/playlist.rb
Class Method Summary collapse
Class Method Details
.page_count(total, per_page) ⇒ Object
3 4 5 6 |
# File 'lib/playlist.rb', line 3 def self.page_count(total, per_page) mid_point = total.to_f / per_page.to_f mid_point.ceil end |