Sha256: 27b3fdb63de8575c8280b176bf41b0499f1a27e8bbe704478c9e71b3af296f8a
Contents?: true
Size: 1.02 KB
Versions: 11
Compression:
Stored size: 1.02 KB
Contents
#!/usr/bin/env ruby require 'stringio' require 'rtf/font' require 'rtf/colour' require 'rtf/style' require 'rtf/information' require 'rtf/paper' require 'rtf/node' # This module encapsulates all the classes and definitions relating to the RTF # library. module RTF # This is the exception class used by the RTF library code to indicate # errors. class RTFError < StandardError # This is the constructor for the RTFError class. # # ==== Parameters # message:: A reference to a string containing the error message for # the exception defaults to nil. def initialize(message=nil) super(message == nil ? 'No error message available.' : message) end # This method provides a short cut for raising RTFErrors. # # ==== Parameters # message:: A string containing the exception message. Defaults to nil. def RTFError.fire(message=nil) raise RTFError.new(message) end end # End of the RTFError class. end # End of the RTF module.
Version data entries
11 entries across 11 versions & 4 rubygems