module Rethinker::Selection::Update

Public Instance Methods

update(attrs={}, &block) click to toggle source
# File lib/rethinker/selection/update.rb, line 2
def update(attrs={}, &block)
  block = proc { attrs } unless block_given?
  chain(Rethinker::Criterion.new(:update, &block)).run
end