Class: Puppet::Pops::Parser::Locatable

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/pops/parser/locatable.rb

Overview

Interface for something that is “locatable” (holds offset and length).

Defined Under Namespace

Classes: Fixed

Instance Method Summary collapse

Instance Method Details

#lengthObject

The length in the locator from the given offset



10
11
# File 'lib/puppet/pops/parser/locatable.rb', line 10

def length
end

#offsetObject

The offset in the locator’s content



6
7
# File 'lib/puppet/pops/parser/locatable.rb', line 6

def offset
end