module RPicSim::Flaws
This module stores knowledge about flaw in RPicSim
, usually due to bugs or limitation of the MPLAB X classes we are using. See {file:KnownIssues.md} for more details.
@api public
Public Class Methods
[](name)
click to toggle source
Returns the effect of the flaw with the specified name for the currently loaded version of MPLAB X.
The names and effects are listed in flaws.rb
.
The returned value will usually be a boolean, but sometimes a Symbol.
@param name [Symbol] The name of the flaw.
# File lib/rpicsim/flaws.rb, line 60 def self.[](name) @flaw_hash[name].effect Mplab.version end
add(name) { |flaw| ... }
click to toggle source
@api private
# File lib/rpicsim/flaws.rb, line 65 def self.add(name) @flaw_hash[name] = flaw = Flaw.new(name) yield flaw end