Class: ArchSpec::SourceLocation
- Inherits:
-
Data
- Object
- Data
- ArchSpec::SourceLocation
- Defined in:
- lib/archspec/source_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.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
6 7 8 |
# File 'lib/archspec/source_location.rb', line 6 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
6 7 8 |
# File 'lib/archspec/source_location.rb', line 6 def line @line end |
#path ⇒ Object (readonly)
Returns the value of attribute path
6 7 8 |
# File 'lib/archspec/source_location.rb', line 6 def path @path end |
Class Method Details
.from_prism(path, location) ⇒ Object
7 8 9 |
# File 'lib/archspec/source_location.rb', line 7 def self.from_prism(path, location) new(path, location.start_line, location.start_column + 1) end |