Class: TrueClass

Inherits:
Object
  • Object
show all
Defined in:
lib/ada_truthy/logical_gates/logical_gate_extension.rb

Constant Summary collapse

LogicalGate =
AdaTruthy::LogicalGate

Instance Method Summary collapse

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

#notObject



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