Module: Origen::Bugs::ClassMethods
- Defined in:
- lib/origen/bugs.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#bug(name, options = {}) ⇒ Object
Define a bug on the given IP.
- #bugs ⇒ Object
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, = {}) name = name.to_s.downcase.to_sym bugs[name] = Bug.new(name, ) define_method "has_#{name}_bug?" do Origen.deprecate "Use has_bug?(:#{name}) instead of has_#{name}_bug?" has_bug?(name) end end |
#bugs ⇒ Object
18 19 20 |
# File 'lib/origen/bugs.rb', line 18 def bugs @bugs ||= {} end |