Class: TrueClass
- Inherits:
-
Object
- Object
- TrueClass
- 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
17 18 19 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 17 def and(b, *others) LogicalGate.and self, b, others end |
#nand(b, *others) ⇒ Object
21 22 23 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 21 def nand(b, *others) LogicalGate.nand self, b, others end |
#nor(b, *others) ⇒ Object
13 14 15 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 13 def nor(b, *others) LogicalGate.nor self, b, others end |
#not ⇒ Object
5 6 7 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 5 def not LogicalGate.not self end |
#or(b, *others) ⇒ Object
9 10 11 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 9 def or(b, *others) LogicalGate.or self, b, others end |
#xnor(b, *others) ⇒ Object
29 30 31 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 29 def xnor(b, *others) LogicalGate.xnor self, b, others end |
#xor(b, *others) ⇒ Object
25 26 27 |
# File 'lib/ada_truthy/logical_gates/logical_gate_extension.rb', line 25 def xor(b, *others) LogicalGate.xor self, b, others end |