module Origen::Bugs
Public Instance Methods
bugs()
click to toggle source
Returns a hash containing all known bugs associated with the given IP, regardless of which version they are present on
# File lib/origen/bugs.rb, line 41 def bugs self.class.bugs end
has_bug?(name, _options = {})
click to toggle source
Returns true if the version of the IP represented by the object has the bug of the given name
# File lib/origen/bugs.rb, line 25 def has_bug?(name, _options = {}) unless respond_to?(:version) && version puts 'To test for the presence of a bug the object must implement an attribute' puts "called 'version' which returns the IP version represented by the the object." fail 'Version undefined!' end name = name.to_s.downcase.to_sym if bugs[name] bugs[name].present_on_version?(version) else false end end