Class: Messages

Inherits:
Object
  • Object
show all
Defined in:
lib/logix-toolkit/core/messages.rb

Overview

This class stores functions that display long messages such as introductions tutorials and such

Class Method Summary collapse

Class Method Details

.introObject

Displays an introductory message



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/logix-toolkit/core/messages.rb', line 5

def self.intro
  puts "
==============================================================
Hello there, logix toolkit user! and thank you for using the
logix-toolkit library here is an introduction to the
library and how you should use it
==============================================================
ABOUT:
This library is a small project that its target is to add
and integrate a lot of boolean algebra operations to the Ruby
programming language
it's meant to be used by anyone from mathematicians and 
students that want an easy tool to make boolean algebra 
calculations much  more complicated than the core 
AND, OR operations that most programming languages support
to game developers that are willing to integrate logic into 
their games and focus on their game  without having to mess 
with logic code
or just by anyone interested in logic and boolean
algebra.
  
USAGE:
now the usage of the library is fairly simple
all the logic functions at the moment are simple
almost every command you will use here will be .check?
but here is the catch everything is used here with a
namespace seperator (it's this thing: \"::\")
meaning that if you want to access the AND operation
you will type in the following code:
LogixToolkit::Operations::And.check? true, false
and it will return the value of the operation
(in this example: false)
same goes for any other operation Or, Implication,
Logic gates and so on...
but then what if you need to do calculations
for multiple booleans say I want to check the
OR value for 4 booleans?
it's simple just use the check[NUMBER]? function
Example:
LogixToolkit::Operations::Or.check4? true, true, false, true
simple enough right?
NOTE: I still haven't found a way to make the function accept
an (X) amount of variables so now the check method supports
only up to check5?
  
That's it you're good to go, now go and explore the
magnificent world of boolean algebra

whenever you need to see this message again type
LogixToolkit.help
"
end