Class: Watchr::Location
- Inherits:
-
Object
- Object
- Watchr::Location
- Defined in:
- lib/watchr/location.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file, line = nil) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(file, line = nil) ⇒ Location
Returns a new instance of Location.
5 6 7 8 |
# File 'lib/watchr/location.rb', line 5 def initialize(file, line = nil) @file = file @line = line end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
3 4 5 |
# File 'lib/watchr/location.rb', line 3 def file @file end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
3 4 5 |
# File 'lib/watchr/location.rb', line 3 def line @line end |