Class: Miniric
- Inherits:
-
Object
- Object
- Miniric
- Defined in:
- lib/miniric.rb
Constant Summary collapse
- VERSION =
File.(File.dirname(__FILE__) + '../VERSION') rescue $!
Class Method Summary collapse
- .about ⇒ Object
-
.camerlengize(str = :no_word_given) ⇒ Object
yellow.
- .camerlengo ⇒ Object
- .hi ⇒ Object
- .version ⇒ Object
Class Method Details
.about ⇒ Object
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 |
.camerlengo ⇒ Object
12 13 14 |
# File 'lib/miniric.rb', line 12 def self.camerlengo() camerlengize(:palladius) end |
.hi ⇒ Object
4 5 6 |
# File 'lib/miniric.rb', line 4 def self.hi puts "Hello world!" end |
.version ⇒ Object
25 26 27 |
# File 'lib/miniric.rb', line 25 def self.version() return VERSION end |