Class: Homebrew::SourceLocation Private
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
A location in source code.
Instance Attribute Summary collapse
- #column ⇒ Integer? readonly private
- #line ⇒ Integer readonly private
Instance Method Summary collapse
- #initialize(line, column = nil) ⇒ void constructor private
Constructor Details
#initialize(line, column = nil) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
14 15 16 17 |
# File 'source_location.rb', line 14 def initialize(line, column = nil) @line = line @column = column end |
Instance Attribute Details
#column ⇒ Integer? (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
11 12 13 |
# File 'source_location.rb', line 11 def column @column end |
#line ⇒ Integer (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
8 9 10 |
# File 'source_location.rb', line 8 def line @line end |