Class: FiberAudit::Runtime::Location
- Inherits:
-
Data
- Object
- Data
- FiberAudit::Runtime::Location
- Defined in:
- lib/fiber_audit/runtime/location.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path:, line: nil, column: nil) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(path:, line: nil, column: nil) ⇒ Location
Returns a new instance of Location.
9 10 11 12 13 14 15 |
# File 'lib/fiber_audit/runtime/location.rb', line 9 def initialize(path:, line: nil, column: nil) super( path: normalize_path(path), line: Validation.integer(line, 'line', minimum: 1, allow_nil: true), column: Validation.integer(column, 'column', allow_nil: true) ) end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
8 9 10 |
# File 'lib/fiber_audit/runtime/location.rb', line 8 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
8 9 10 |
# File 'lib/fiber_audit/runtime/location.rb', line 8 def line @line end |
#path ⇒ Object (readonly)
Returns the value of attribute path
8 9 10 |
# File 'lib/fiber_audit/runtime/location.rb', line 8 def path @path end |