Class: Miniric

Inherits:
Object
  • Object
show all
Defined in:
lib/miniric.rb

Constant Summary collapse

VERSION =
File.expand_path(File.dirname(__FILE__) + '../VERSION') rescue $!

Class Method Summary collapse

Class Method Details

.aboutObject



16
17
18
19
20
21
22
23
# File 'lib/miniric.rb', line 16

def self.about()
    [
        "Welcome to MiniRic gem. ",
        "My version is: #{VERSION rescue $!}",
        "Try out Miniric.camerlengo() or even camerlengo binary!",
        "TODO(ricc): add a Module so you just include it and you have yellow, ... available.",
    ].join('\n')
end

.camerlengize(str = :no_word_given) ⇒ Object

yellow



9
10
11
# File 'lib/miniric.rb', line 9

def self.camerlengize(str=:no_word_given)
    "\033[1;33m🪶#{str}\033[0m"
end

.camerlengoObject



12
13
14
# File 'lib/miniric.rb', line 12

def self.camerlengo()
    camerlengize(:palladius)
end

.hiObject



4
5
6
# File 'lib/miniric.rb', line 4

def self.hi
    puts "Hello world!"
end

.versionObject



25
26
27
# File 'lib/miniric.rb', line 25

def self.version()
    return VERSION
end