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

Version Path
ric-0.14.2 lib/ric/zibaldone.rb
ric-0.14.1 lib/ric/zibaldone.rb
ric-0.14.0 lib/ric/zibaldone.rb
ric-0.13.0 lib/ric/zibaldone.rb
ric-0.12.2 lib/ric/zibaldone.rb
ric-0.12.0 lib/ric/zibaldone.rb
ric-0.11.19 lib/ric/zibaldone.rb
ric-0.11.18 lib/ric/zibaldone.rb
ric-0.11.16 lib/ric/zibaldone.rb
ric-0.11.15 lib/ric/zibaldone.rb
ric-0.11.14 lib/ric/zibaldone.rb
ric-0.11.13 lib/ric/zibaldone.rb
ric-0.11.12 lib/ric/zibaldone.rb
ric-0.11.11 lib/ric/zibaldone.rb
ric-0.11.10 lib/ric/zibaldone.rb
ric-0.11.9 lib/ric/zibaldone.rb
ric-0.11.7 lib/ric/zibaldone.rb
ric-0.11.6 lib/ric/zibaldone.rb
ric-0.11.4 lib/ric/zibaldone.rb
ric-0.11.3 lib/ric/zibaldone.rb