Class: LHS::Problems::Warnings
- Defined in:
- lib/lhs/problems/warnings.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
#codes, #messages, #raw, #record
Instance Method Summary collapse
-
#initialize(raw, record = nil) ⇒ Warnings
constructor
A new instance of Warnings.
Methods inherited from Base
#[], #[]=, #add, #clear, #count, #each, #empty?, #get, #include?, #set, #size
Constructor Details
#initialize(raw, record = nil) ⇒ Warnings
Returns a new instance of Warnings.
6 7 8 9 10 11 |
# File 'lib/lhs/problems/warnings.rb', line 6 def initialize(raw, record = nil) @raw = raw @record = record @codes = {}.with_indifferent_access @messages = warnings_from_raw end |