"Aristarkh A Zagorodnikov" <xm / w3d.ru> writes:

> >   DEBUG = false  # or true
> >
> >   def assert
> >     if DEBUG
> >       result = yield
> >       raise "Assertion failed" if !result
> >     end
> >   end
> def assert
> 	raise 'assertion failed' unless yield if DEBUG
> end

Well, if brevity trumps clarity,

  def assert
     DEBUG && !yield && raise('assertion failed')
  end

Dave