Module: Rethinker::Selection::First

Defined in:
lib/rethinker/selection/first.rb

Instance Method Summary collapse

Instance Method Details

#firstObject



2
3
4
5
# File 'lib/rethinker/selection/first.rb', line 2

def first
  self.context[:order] = :normal
  get_one
end

#lastObject



7
8
9
10
# File 'lib/rethinker/selection/first.rb', line 7

def last
  self.context[:order] = :reverse
  get_one
end