Exception: Tex2png::Error

Inherits:
Exception
  • Object
show all
Defined in:
lib/tex2png/errors.rb

Class Method Summary collapse

Class Method Details

.raise!(msg = nil, &cond) ⇒ Object

Raises:

  • (self)


3
4
5
# File 'lib/tex2png/errors.rb', line 3

def self.raise!(msg = nil, &cond)
  raise self.new(msg) if !cond || cond.call
end