Class: AdLint::PhaseContext

Inherits:
Hash
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/adlint/phase.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#monitorObject (readonly)

Returns the value of attribute monitor.



123
124
125
# File 'lib/adlint/phase.rb', line 123

def monitor
  @monitor
end

#reportObject (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.flush_deferred_messages(supps)
  end
end