Class: InfluxDB::Rails::Backtrace::Line
- Inherits:
-
Object
- Object
- InfluxDB::Rails::Backtrace::Line
- Defined in:
- lib/influxdb/rails/backtrace.rb
Overview
rubocop:disable Style/Documentation
Constant Summary collapse
- FORMAT =
/^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in `([^']+)')?$/.freeze
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(line) ⇒ Line
constructor
A new instance of Line.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
7 8 9 |
# File 'lib/influxdb/rails/backtrace.rb', line 7 def file @file end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
9 10 11 |
# File 'lib/influxdb/rails/backtrace.rb', line 9 def method @method end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
8 9 10 |
# File 'lib/influxdb/rails/backtrace.rb', line 8 def number @number end |
Instance Method Details
#inspect ⇒ Object
19 20 21 |
# File 'lib/influxdb/rails/backtrace.rb', line 19 def inspect "<Line: #{to_s}>" # rubocop:disable Lint/StringConversionInInterpolation end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/influxdb/rails/backtrace.rb', line 15 def to_s "#{file}:#{number} in `#{method}'" end |