Class: PuppetDebugServer::SourcePosition
- Inherits:
-
Object
- Object
- PuppetDebugServer::SourcePosition
- Defined in:
- lib/puppet-debugserver/puppet_debug_session.rb
Overview
A simple class which represents the position of somethin within a source document
Instance Attribute Summary collapse
-
#file ⇒ String
The path of the source file.
-
#length ⇒ Integer
The numner of characters this position encompasses.
-
#line ⇒ Integer
The line in the source file.
-
#offset ⇒ Integer
The absolute offset of the location in the source file.
Instance Attribute Details
#file ⇒ String
The path of the source file
491 492 493 |
# File 'lib/puppet-debugserver/puppet_debug_session.rb', line 491 def file @file end |
#length ⇒ Integer
The numner of characters this position encompasses
503 504 505 |
# File 'lib/puppet-debugserver/puppet_debug_session.rb', line 503 def length @length end |
#line ⇒ Integer
The line in the source file
495 496 497 |
# File 'lib/puppet-debugserver/puppet_debug_session.rb', line 495 def line @line end |
#offset ⇒ Integer
The absolute offset of the location in the source file
499 500 501 |
# File 'lib/puppet-debugserver/puppet_debug_session.rb', line 499 def offset @offset end |