Class: Logue::Location
- Inherits:
-
Object
- Object
- Logue::Location
- Defined in:
- lib/logue/location.rb
Instance Attribute Summary collapse
-
#cls ⇒ Object
readonly
Returns the value of attribute cls.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #format(locformat) ⇒ Object
-
#initialize(path, line, cls, method) ⇒ Location
constructor
A new instance of Location.
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
#cls ⇒ Object (readonly)
Returns the value of attribute cls.
10 11 12 |
# File 'lib/logue/location.rb', line 10 def cls @cls end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
9 10 11 |
# File 'lib/logue/location.rb', line 9 def line @line end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
11 12 13 |
# File 'lib/logue/location.rb', line 11 def method @method end |
#path ⇒ Object (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 |