Class: RPicSim::Flaws::Flaw

Inherits:
Object
  • Object
show all
Defined in:
lib/rpicsim/flaws.rb

Overview

Represents a flaw in RPicSim, usually dues to bugs in the MPLAB X classes we are using. Stores the name of the flaw and knowledge about what versions of MPLAB X it affects and how.

Instance Method Summary collapse

Instance Method Details

#effect(version) ⇒ Object

Returns the effect of this flaw on the specified version of MPLAB X. This might just be true/false to indicate if the flaw is present or it might be a more complicated thing if there is more than one effect the the flaw can have.

Parameters:

  • version (String)

    A version of MPLAB X, e.g. '1.95'.

Returns:

  • effect



27
28
29
30
31
32
33
# File 'lib/rpicsim/flaws.rb', line 27

def effect(version)
  if @versions.key? version
    @versions[version]
  else
    @probable_affect_for_other_versions
  end
end