class Text2png::Error

Public Class Methods

raise!(msg = nil, &cond) click to toggle source
# File lib/text2png/errors.rb, line 3
def self.raise!(msg = nil, &cond)
  raise self.new(msg) if !cond || cond.call
end