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

Inherits:
Puppet::Pops::Parser::Locatable show all
Defined in:
lib/puppet/pops/parser/locatable.rb

Overview

This class is useful for testing

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset, length) ⇒ Fixed

Returns a new instance of Fixed


17
18
19
20
# File 'lib/puppet/pops/parser/locatable.rb', line 17

def initialize(offset, length)
  @offset = offset
  @length = length
end

Instance Attribute Details

#lengthObject (readonly)


15
16
17
# File 'lib/puppet/pops/parser/locatable.rb', line 15

def length
  @length
end

#offsetObject (readonly)


14
15
16
# File 'lib/puppet/pops/parser/locatable.rb', line 14

def offset
  @offset
end