Class: Logue::Location

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, line, cls, method) ⇒ Location

Returns a new instance of Location.



10
11
12
13
14
15
# File 'lib/logue/locations/location.rb', line 10

def initialize path, line, cls, method
  @path = path
  @line = line
  @cls = cls
  @method = method
end

Instance Attribute Details

#clsObject (readonly)

Returns the value of attribute cls.



7
8
9
# File 'lib/logue/locations/location.rb', line 7

def cls
  @cls
end

#lineObject (readonly)

Returns the value of attribute line.



6
7
8
# File 'lib/logue/locations/location.rb', line 6

def line
  @line
end

#methodObject (readonly)

Returns the value of attribute method.



8
9
10
# File 'lib/logue/locations/location.rb', line 8

def method
  @method
end

#pathObject (readonly)

Returns the value of attribute path.



5
6
7
# File 'lib/logue/locations/location.rb', line 5

def path
  @path
end