Class: UberTask::Location
- Inherits:
-
Object
- Object
- UberTask::Location
- Defined in:
- lib/uber_task/location.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
Returns the value of attribute line.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path:, line:) ⇒ Location
constructor
A new instance of Location.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line.
5 6 7 |
# File 'lib/uber_task/location.rb', line 5 def line @line end |
#path ⇒ Object
Returns the value of attribute path.
5 6 7 |
# File 'lib/uber_task/location.rb', line 5 def path @path end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/uber_task/location.rb', line 13 def to_s "#{path}:#{line}" end |