Class: Stackdo::Location
- Inherits:
-
Struct
- Object
- Struct
- Stackdo::Location
- Defined in:
- lib/stackdo.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
Instance Method Summary collapse
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file
6 7 8 |
# File 'lib/stackdo.rb', line 6 def file @file end |
#line ⇒ Object
Returns the value of attribute line
6 7 8 |
# File 'lib/stackdo.rb', line 6 def line @line end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/stackdo.rb', line 7 def to_s "#{file}:#{line}" end |