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.



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

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

Instance Attribute Details

#lengthObject (readonly)



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

def length
  @length
end

#offsetObject (readonly)



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

def offset
  @offset
end