Sha256: 97b881f02b58de3e4ce78bba7c0be31c59c3472bceb68de02e776825df10bfd1

Contents?: true

Size: 647 Bytes

Versions: 2

Compression:

Stored size: 647 Bytes

Contents

require 'rrtf/version'
require 'rrtf/font'
require 'rrtf/colour'
require 'rrtf/style'
require 'rrtf/stylesheet'
require 'rrtf/information'
require 'rrtf/paper'
require 'rrtf/node'
require 'rrtf/list'

module RRTF
    class RTFError < StandardError
      def initialize(message=nil)
        super(message == nil ? 'No error message available.' : message)
      end

      def RTFError.fire(message=nil)
        raise RTFError.new(message)
      end
    end # class RTFError

    class Utilities
      def self.constantize(string)
        string.split('::').inject(Object) {|o,c| o.const_get c}
      end
    end # class Utilities
end # module RRTF

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rrtf-0.1.2 lib/rrtf.rb
rrtf-0.1.1 lib/rrtf.rb