Class: Core::Define::Location
- Inherits:
-
Object
- Object
- Core::Define::Location
- Defined in:
- lib/core/define/location.rb
Overview
- public
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
[public].
-
#path ⇒ Object
readonly
[public].
Instance Method Summary collapse
-
#initialize(path:, line:) ⇒ Location
constructor
A new instance of Location.
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
#line ⇒ Object (readonly)
- public
21 22 23 |
# File 'lib/core/define/location.rb', line 21 def line @line end |
#path ⇒ Object (readonly)
- public
17 18 19 |
# File 'lib/core/define/location.rb', line 17 def path @path end |