Module: OrigenTesters::VectorBasedTester::ClassMethods

Defined in:
lib/origen_testers/vector_based_tester.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#new(*args, &block) ⇒ Object

This overrides the new method of any class which includes this module to force the newly created instance to be registered as a tester with Origen



22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/origen_testers/vector_based_tester.rb', line 22

def new(*args, &block) # :nodoc:
  if Origen.app.with_doc_tester?
    x = OrigenTesters::Doc.allocate
    if Origen.app.with_html_doc_tester?
      x.html_mode = true
    end
  else
    x = allocate
  end
  x.send(:initialize, *args, &block)
  x.register_tester
  x
end