Class: FalseClass
- Inherits:
-
Object
- Object
- FalseClass
- Defined in:
- lib/ada_truthy/logical_gates/logical_gate_extension.rb
Constant Summary collapse
- LogicalGate =
AdaTruthy::LogicalGate
Instance Method Summary collapse
- #and(b, *others) ⇒ Object
- #nand(b, *others) ⇒ Object
- #nor(b, *others) ⇒ Object
- #not ⇒ Object
- #or(b, *others) ⇒ Object
- #xnor(b, *others) ⇒ Object
- #xor(b, *others) ⇒ Object
Instance Method Details
#and(b, *others) ⇒ Object
48 49 50 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 48 def and(b, *others) LogicalGate.and self, b, others end |
#nand(b, *others) ⇒ Object
52 53 54 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 52 def nand(b, *others) LogicalGate.nand self, b, others end |
#nor(b, *others) ⇒ Object
44 45 46 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 44 def nor(b, *others) LogicalGate.nor self, b, others end |
#not ⇒ Object
36 37 38 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 36 def not LogicalGate.not self end |
#or(b, *others) ⇒ Object
40 41 42 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 40 def or(b, *others) LogicalGate.or self, b, others end |
#xnor(b, *others) ⇒ Object
60 61 62 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 60 def xnor(b, *others) LogicalGate.xnor self, b, others end |
#xor(b, *others) ⇒ Object
56 57 58 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 56 def xor(b, *others) LogicalGate.xor self, b, others end |