Class: LogixToolkit::Operations::Or
- Inherits:
-
Object
- Object
- LogixToolkit::Operations::Or
- Defined in:
- lib/logix-toolkit/operations/or.rb
Overview
The “or” class used to define or operations (e.g A ∨ B)
Class Method Summary collapse
- .check3?(arg0, arg1, arg2) ⇒ Boolean
- .check4?(arg0, arg1, arg2, arg3) ⇒ Boolean
- .check5?(arg0, arg1, arg2, arg3, arg4) ⇒ Boolean
-
.check?(arg0, arg1) ⇒ Boolean
checks the value of A ∨ B.
Class Method Details
.check3?(arg0, arg1, arg2) ⇒ Boolean
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/logix-toolkit/operations/or.rb', line 20 def self.check3? arg0, arg1, arg2 if BooleanVerifier.verify? arg0, arg1, arg2 if arg0 or arg1 or arg2 return true else return false end else ErrorsAndExceptions.couldnt_be_performed end end |
.check4?(arg0, arg1, arg2, arg3) ⇒ Boolean
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/logix-toolkit/operations/or.rb', line 32 def self.check4? arg0, arg1, arg2, arg3 if BooleanVerifier.verify? arg0, arg1, arg2, arg3 if arg0 or arg1 or arg2 or arg3 return true else return false end else ErrorsAndExceptions.couldnt_be_performed end end |
.check5?(arg0, arg1, arg2, arg3, arg4) ⇒ Boolean
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/logix-toolkit/operations/or.rb', line 44 def self.check5? arg0, arg1, arg2, arg3, arg4 if BooleanVerifier.verify? arg0, arg1, arg2, arg3, arg4 if arg0 or arg1 or arg2 or arg3 or arg4 return true else return false end else ErrorsAndExceptions.couldnt_be_performed end end |
.check?(arg0, arg1) ⇒ Boolean
checks the value of A ∨ B
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/logix-toolkit/operations/or.rb', line 8 def self.check? arg0, arg1 if BooleanVerifier.verify? arg0,arg1 if arg0 or arg1 return true else return false end else ErrorsAndExceptions.couldnt_be_performed end end |