Class: Homebrew::SourceLocation Private

Inherits:
Object
  • Object
show all
Defined in:
source_location.rb

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

Instance Method Summary collapse

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.

Parameters:



14
15
16
17
# File 'source_location.rb', line 14

def initialize(line, column = nil)
  @line = line
  @column = column
end

Instance Attribute Details

#columnInteger? (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.

Returns:



11
12
13
# File 'source_location.rb', line 11

def column
  @column
end

#lineInteger (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.

Returns:



8
9
10
# File 'source_location.rb', line 8

def line
  @line
end