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
4 5 6 |
# File 'lib/archspec/source_location.rb', line 4 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
4 5 6 |
# File 'lib/archspec/source_location.rb', line 4 def line @line end |
#path ⇒ Object (readonly)
Returns the value of attribute path
4 5 6 |
# File 'lib/archspec/source_location.rb', line 4 def path @path end |
Class Method Details
.from_prism(path, location) ⇒ Object
5 6 7 |
# File 'lib/archspec/source_location.rb', line 5 def self.from_prism(path, location) new(path, location.start_line, location.start_column + 1) end |