Class: PuppetDebugServer::SourcePosition

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#fileString

The path of the source file

Returns:

  • (String)


491
492
493
# File 'lib/puppet-debugserver/puppet_debug_session.rb', line 491

def file
  @file
end

#lengthInteger

The numner of characters this position encompasses

Returns:

  • (Integer)


503
504
505
# File 'lib/puppet-debugserver/puppet_debug_session.rb', line 503

def length
  @length
end

#lineInteger

The line in the source file

Returns:

  • (Integer)


495
496
497
# File 'lib/puppet-debugserver/puppet_debug_session.rb', line 495

def line
  @line
end

#offsetInteger

The absolute offset of the location in the source file

Returns:

  • (Integer)


499
500
501
# File 'lib/puppet-debugserver/puppet_debug_session.rb', line 499

def offset
  @offset
end