Method: Bmg::Relation#one
- Defined in:
- lib/bmg/relation.rb
#one ⇒ Object
Returns the only tuple that the relation contains. Throws a OneException when there is no tuple or more than one
66 67 68 |
# File 'lib/bmg/relation.rb', line 66 def one one_or_yield{ raise OneError, "Relation is empty" } end |