diff --git a/lib/rcircuit/gate.rb b/lib/rcircuit/gate.rb index e1bc01f..9124f91 100644 --- a/lib/rcircuit/gate.rb +++ b/lib/rcircuit/gate.rb @@ -43,6 +43,7 @@ class Gate # @param table [Array>] The truth table, # which is an array of entries. The last value in the entry is the expected output, # the rest are the inputs to the ports. + # @return [Boolean] Whether the truth table matches the gate's behavior def self.test_table(table) ports=[] (table[0].length-1).times do diff --git a/lib/rcircuit/vcd.rb b/lib/rcircuit/vcd.rb index aaf6989..eaaa04c 100644 --- a/lib/rcircuit/vcd.rb +++ b/lib/rcircuit/vcd.rb @@ -2,7 +2,8 @@ class VCD # @!attribute [w] fd - # @api private + # @api private + # Used for testing to set the file to an RSpec double. attr_writer :fd # @param filename [String] The filename to output to # @param timescale [String] The timescale