Class: Logue::Location

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Location.



13
14
15
16
17
18
# File 'lib/logue/location.rb', line 13

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.



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

def cls
  @cls
end

#lineObject (readonly)

Returns the value of attribute line.



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

def line
  @line
end

#methodObject (readonly)

Returns the value of attribute method.



11
12
13
# File 'lib/logue/location.rb', line 11

def method
  @method
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

Instance Method Details

#format(locformat) ⇒ Object



20
21
22
# File 'lib/logue/location.rb', line 20

def format locformat
  locformat.format @path, @line, @cls, @method
end