Class: StyleViolation
- Inherits:
-
Struct
- Object
- Struct
- StyleViolation
- Defined in:
- lib/cane/style_violation.rb
Overview
Value object used by StyleCheck.
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#line ⇒ Object
Returns the value of attribute line.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
Instance Attribute Details
#file_name ⇒ Object
Returns the value of attribute file_name
2 3 4 |
# File 'lib/cane/style_violation.rb', line 2 def file_name @file_name end |
#line ⇒ Object
Returns the value of attribute line
2 3 4 |
# File 'lib/cane/style_violation.rb', line 2 def line @line end |
#message ⇒ Object
Returns the value of attribute message
2 3 4 |
# File 'lib/cane/style_violation.rb', line 2 def @message end |
Instance Method Details
#columns ⇒ Object
7 8 9 |
# File 'lib/cane/style_violation.rb', line 7 def columns ["%s:%i" % [file_name, line], ] end |
#description ⇒ Object
3 4 5 |
# File 'lib/cane/style_violation.rb', line 3 def description "Lines violated style requirements" end |