Class: Skiptrace::Location
- Inherits:
-
Object
- Object
- Skiptrace::Location
- Defined in:
- lib/skiptrace/location.rb
Instance Attribute Summary collapse
-
#binding ⇒ Object
readonly
Returns the value of attribute binding.
Instance Method Summary collapse
- #absolute_path ⇒ Object
- #base_label ⇒ Object
-
#initialize(location, binding) ⇒ Location
constructor
A new instance of Location.
- #inspect ⇒ Object
- #label ⇒ Object
- #lineno ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(location, binding) ⇒ Location
Returns a new instance of Location.
5 6 7 8 |
# File 'lib/skiptrace/location.rb', line 5 def initialize(location, binding) @location = location @binding = binding end |
Instance Attribute Details
#binding ⇒ Object (readonly)
Returns the value of attribute binding.
3 4 5 |
# File 'lib/skiptrace/location.rb', line 3 def binding @binding end |
Instance Method Details
#absolute_path ⇒ Object
10 11 12 |
# File 'lib/skiptrace/location.rb', line 10 def absolute_path @location.absolute_path end |
#base_label ⇒ Object
14 15 16 |
# File 'lib/skiptrace/location.rb', line 14 def base_label @location.base_label end |
#inspect ⇒ Object
18 19 20 |
# File 'lib/skiptrace/location.rb', line 18 def inspect @location.inspect end |
#label ⇒ Object
22 23 24 |
# File 'lib/skiptrace/location.rb', line 22 def label @location.label end |
#lineno ⇒ Object
26 27 28 |
# File 'lib/skiptrace/location.rb', line 26 def lineno @location.lineno end |
#to_s ⇒ Object
30 31 32 |
# File 'lib/skiptrace/location.rb', line 30 def to_s @location.to_s end |