Sha256: a5b40cee2b3d965477859c273641bbc6a8cd48b4c4afe23117fa6f1965da9cb4
Contents?: true
Size: 1019 Bytes
Versions: 29
Compression:
Stored size: 1019 Bytes
Contents
# random methods i dont know wher eto put right now :( module Ric module Zibaldone def self.gemdir File.dirname( File.dirname(__FILE__) + '/../../..' ) # Im in lib/ric/zibaldone.rb end def self.version # TODO memoize/cache this into @@version ver = File.read( File.expand_path('VERSION' , gemdir() ) ) "(v.#{ver})" # for debug end def self.say_hello puts "Ric::Zibaldone.say_hello(): This hello is brought to you by ''#{yellow 'Riccardo Carlesso' rescue 'Riccardo Carlesso (Error with color yellow)'}''" end def self.ric_help ret = <<-HTML == Ric (formerly RicLib) == This is Riccardo library (my first gem!). Try the following commands maybe Try some of the following: pred 'This is in red' pyellow 'This is yellow instead' gemdir: #{ gemdir } HTML puts( ret ) ret end #alias :help :ric_help #alias :about :ric_help end #/Zibaldone end #/Ric
Version data entries
29 entries across 29 versions & 1 rubygems