Class: Lintress::Resolution
- Inherits:
-
Object
- Object
- Lintress::Resolution
- Defined in:
- lib/lintress/resolution.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(offense) ⇒ Resolution
constructor
A new instance of Resolution.
Constructor Details
#initialize(offense) ⇒ Resolution
Returns a new instance of Resolution.
5 6 7 8 |
# File 'lib/lintress/resolution.rb', line 5 def initialize offense raise IncorrectOffenseException unless offense.is_a? Lintress::Offense @offense = offense end |