module Enumerable
Public Instance Methods
first_and_only!()
click to toggle source
# File lib/first_and_only.rb, line 4 def first_and_only! fail(FirstAndOnly::CountNotOne.new count) if first(2).count != 1 first end