Class: Logicuit::Gates::Or
Overview
OR gate
Instance Attribute Summary collapse
-
#a ⇒ Object
readonly
: Signals::Signal.
-
#b ⇒ Object
readonly
: Signals::Signal.
-
#y ⇒ Object
readonly
: Signals::Signal.
Attributes inherited from DSL
#clock, #components, #initialized, #input_targets, #output_targets
Method Summary
Methods inherited from DSL
#[], assembling, #assembling, diagram, #evaluate, #initialize, #inputs, inputs, outputs, #outputs, run, truth_table, verify_against_truth_table
Constructor Details
This class inherits a constructor from Logicuit::DSL
Instance Attribute Details
#a ⇒ Object (readonly)
: Signals::Signal
15 16 17 |
# File 'lib/logicuit/gates/or.rb', line 15 def a @a end |
#b ⇒ Object (readonly)
: Signals::Signal
15 16 17 |
# File 'lib/logicuit/gates/or.rb', line 15 def b @b end |
#y ⇒ Object (readonly)
: Signals::Signal
15 16 17 |
# File 'lib/logicuit/gates/or.rb', line 15 def y @y end |