Class: Skiptrace::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/skiptrace/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bindingObject (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_pathObject



10
11
12
# File 'lib/skiptrace/location.rb', line 10

def absolute_path
  @location.absolute_path
end

#base_labelObject



14
15
16
# File 'lib/skiptrace/location.rb', line 14

def base_label
  @location.base_label
end

#inspectObject



18
19
20
# File 'lib/skiptrace/location.rb', line 18

def inspect
  @location.inspect
end

#labelObject



22
23
24
# File 'lib/skiptrace/location.rb', line 22

def label
  @location.label
end

#linenoObject



26
27
28
# File 'lib/skiptrace/location.rb', line 26

def lineno
  @location.lineno
end

#to_sObject



30
31
32
# File 'lib/skiptrace/location.rb', line 30

def to_s
  @location.to_s
end