Module: Origen::Bugs::ClassMethods

Defined in:
lib/origen/bugs.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#bug(name, options = {}) ⇒ Object

Define a bug on the given IP



9
10
11
12
13
14
15
16
# File 'lib/origen/bugs.rb', line 9

def bug(name, options = {})
  name = name.to_s.downcase.to_sym
  bugs[name] = Bug.new(name, options)
  define_method "has_#{name}_bug?" do
    Origen.deprecate "Use has_bug?(:#{name}) instead of has_#{name}_bug?"
    has_bug?(name)
  end
end

#bugsObject



18
19
20
# File 'lib/origen/bugs.rb', line 18

def bugs
  @bugs ||= {}
end