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

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

Overview

Interface for something that is “locateable” (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



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

def length
end

#offsetObject

The offset in the locator’s content



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

def offset
end