Method: Sequel::Dataset#first!

Defined in:
lib/sequel/dataset/actions.rb

#first!(*args, &block) ⇒ Object

Calls first. If first returns nil (signaling that no row matches), raise a Sequel::NoMatchingRow exception.



284
285
286
# File 'lib/sequel/dataset/actions.rb', line 284

def first!(*args, &block)
  first(*args, &block) || raise(Sequel::NoMatchingRow.new(self))
end