Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/bullhorn/util.rb

Instance Method Summary collapse

Instance Method Details

#page(pg, offset = 5) ⇒ Object



2
3
4
# File 'lib/bullhorn/util.rb', line 2

def page(pg, offset = 5)
  self[((pg-1)*offset)..((pg*offset)-1)]
end

#smaller_page(pg, offset = 5) ⇒ Object



6
7
8
# File 'lib/bullhorn/util.rb', line 6

def smaller_page(pg, offset = 5)
  self[((pg-1)*offset)..((pg*offset)-1)]
end