Class: Nom::Util
- Inherits:
-
Object
- Object
- Nom::Util
- Defined in:
- lib/nom-ruby/util.rb
Class Method Summary collapse
Class Method Details
.page(options) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/nom-ruby/util.rb', line 3 def self.page() start = [:start].present? ? [:start] : 0 limit = [:limit].present? ? [:limit] : 15 start = 0 if start < 0 [start, limit] end |