Module: OrigenTesters::Generator::ClassMethods

Defined in:
lib/origen_testers/generator.rb

Instance Method Summary collapse

Instance Method Details

#new(*args, &block) ⇒ Object

:nodoc:



332
333
334
335
336
337
338
339
# File 'lib/origen_testers/generator.rb', line 332

def new(*args, &block) # :nodoc:
  options = (args.last && args.last.is_a?(Hash)) ? args.last : {}
  x = allocate
  x.filename = options[:filename] if options[:filename]
  x.send(:initialize, *args, &block)
  Origen.interface.sheet_generators << x unless options[:manually_register]
  x
end