Class: AdLint::PhaseContext
- Inherits:
-
Hash
- Object
- Hash
- AdLint::PhaseContext
- Extended by:
- Forwardable
- Defined in:
- lib/adlint/phase.rb
Instance Attribute Summary collapse
-
#monitor ⇒ Object
readonly
Returns the value of attribute monitor.
-
#report ⇒ Object
readonly
Returns the value of attribute report.
Instance Method Summary collapse
- #flush_deferred_report! ⇒ Object
-
#initialize(analyzer, report, monitor) ⇒ PhaseContext
constructor
A new instance of PhaseContext.
Constructor Details
#initialize(analyzer, report, monitor) ⇒ PhaseContext
Returns a new instance of PhaseContext.
115 116 117 118 119 120 |
# File 'lib/adlint/phase.rb', line 115 def initialize(analyzer, report, monitor) super() @analyzer = analyzer @report = report @monitor = monitor end |
Instance Attribute Details
#monitor ⇒ Object (readonly)
Returns the value of attribute monitor.
123 124 125 |
# File 'lib/adlint/phase.rb', line 123 def monitor @monitor end |
#report ⇒ Object (readonly)
Returns the value of attribute report.
122 123 124 |
# File 'lib/adlint/phase.rb', line 122 def report @report end |
Instance Method Details
#flush_deferred_report! ⇒ Object
135 136 137 138 139 |
# File 'lib/adlint/phase.rb', line 135 def flush_deferred_report! if supps = self[:suppressors] @report.(supps) end end |