Class: Core::Define::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/core/define/location.rb

Overview

public

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, line:) ⇒ Location

Returns a new instance of Location.



10
11
12
13
# File 'lib/core/define/location.rb', line 10

def initialize(path:, line:)
  @path = Pathname.new(path).freeze
  @line = line.to_i.freeze
end

Instance Attribute Details

#lineObject (readonly)

public


21
22
23
# File 'lib/core/define/location.rb', line 21

def line
  @line
end

#pathObject (readonly)

public


17
18
19
# File 'lib/core/define/location.rb', line 17

def path
  @path
end