Class: ArchSpec::Suppression
- Inherits:
-
Data
- Object
- Data
- ArchSpec::Suppression
- Defined in:
- lib/archspec/model.rb
Instance Attribute Summary collapse
-
#end_line ⇒ Object
readonly
Returns the value of attribute end_line.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#rule ⇒ Object
readonly
Returns the value of attribute rule.
-
#start_line ⇒ Object
readonly
Returns the value of attribute start_line.
Instance Method Summary collapse
Instance Attribute Details
#end_line ⇒ Object (readonly)
Returns the value of attribute end_line
8 9 10 |
# File 'lib/archspec/model.rb', line 8 def end_line @end_line end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
8 9 10 |
# File 'lib/archspec/model.rb', line 8 def reason @reason end |
#rule ⇒ Object (readonly)
Returns the value of attribute rule
8 9 10 |
# File 'lib/archspec/model.rb', line 8 def rule @rule end |
#start_line ⇒ Object (readonly)
Returns the value of attribute start_line
8 9 10 |
# File 'lib/archspec/model.rb', line 8 def start_line @start_line end |
Instance Method Details
#matches?(diagnostic) ⇒ Boolean
9 10 11 12 13 |
# File 'lib/archspec/model.rb', line 9 def matches?(diagnostic) (rule.nil? || rule == diagnostic.rule) && diagnostic.location.line >= start_line && diagnostic.location.line <= end_line end |