Sha256: b71c6008167382cdf7690ba3278d12036e62080d07fbdd6c9ce8eef994122387
Contents?: true
Size: 943 Bytes
Versions: 1
Compression:
Stored size: 943 Bytes
Contents
# = Glue # # General libraries used by various projects. # # George Moschovitis <gm@navel.gr> # (c) 2004-2005 Navel, all rights reserved. # $Id: glue.rb 300 2005-03-16 13:23:10Z gmosx $ require 'English' require 'pp' require 'glue/property' require 'glue/attribute' # The standard namespace module. module N; end class NilClass # quite usefull for error tolerant apps. # a bit dangerous? Will have to rethink this. def empty? return true end end class Class #-- # gmosx: is this really needed? #++ def to_i return self.hash end end module Kernel # Pretty prints an exception/error object # usefull for helpfull debug messages # # Input: # The Exception/StandardError object # # Output: # the pretty printed string def pp_exception(ex) return %{#{ex.message}\n\tBACKTRACE:\n\t#{ex.backtrace.join("\n\t")}\n\tLOGGED FROM:\n\t#{caller[0]}} end end module Glue # The version. Version = '0.13.0' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glue-0.13.0 | lib/glue.rb |