Class: Homebrew::Style::LineLocation Private
- Inherits:
-
Object
- Object
- Homebrew::Style::LineLocation
- Defined in:
- Library/Homebrew/style.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Source location of a style offense.
Instance Attribute Summary collapse
- #column ⇒ Object readonly private
- #line ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(json) ⇒ LineLocation
constructor
private
A new instance of LineLocation.
- #to_s ⇒ Object private
Constructor Details
#initialize(json) ⇒ LineLocation
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of LineLocation.
274 275 276 277 |
# File 'Library/Homebrew/style.rb', line 274 def initialize(json) @line = json["line"] @column = json["column"] end |
Instance Attribute Details
#column ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
272 273 274 |
# File 'Library/Homebrew/style.rb', line 272 def column @column end |
#line ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
272 273 274 |
# File 'Library/Homebrew/style.rb', line 272 def line @line end |
Instance Method Details
#to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
279 280 281 |
# File 'Library/Homebrew/style.rb', line 279 def to_s "#{line}: col #{column}" end |