Class: AdLint::Benchmark::AnalysisTarget
- Inherits:
-
Object
- Object
- AdLint::Benchmark::AnalysisTarget
- Defined in:
- lib/adlint/benchmark/target.rb
Direct Known Subclasses
Target::T_screen_4_0_3_process_c, Target::T_screen_4_0_3_process_c_small
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
- #analyze ⇒ Object
-
#initialize(name) ⇒ AnalysisTarget
constructor
A new instance of AnalysisTarget.
Constructor Details
#initialize(name) ⇒ AnalysisTarget
Returns a new instance of AnalysisTarget.
53 54 55 |
# File 'lib/adlint/benchmark/target.rb', line 53 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
57 58 59 |
# File 'lib/adlint/benchmark/target.rb', line 57 def name @name end |
Class Method Details
.load(name) ⇒ Object
41 42 43 44 45 46 |
# File 'lib/adlint/benchmark/target.rb', line 41 def self.load(name) require(name_to_rb_fname(name)) eval "#{name_to_rb_cname(name)}.new('#{name}')" rescue LoadError nil end |
Instance Method Details
#analyze ⇒ Object
59 60 61 62 63 |
# File 'lib/adlint/benchmark/target.rb', line 59 def analyze patch_libraries do _analyze end end |