Sha256: 699a0977eb020141317199e05ce1931a5d68bbf5ec516b9c7e09e80584501b2b

Contents?: true

Size: 479 Bytes

Versions: 290

Compression:

Stored size: 479 Bytes

Contents

# Interface for something that is "locateable" (holds offset and length).
class Puppet::Pops::Parser::Locatable

  # The offset in the locator's content
  def offset
  end

  # The length in the locator from the given offset
  def length
  end

  # This class is useful for testing
  class Fixed < Puppet::Pops::Parser::Locatable
    attr_reader :offset
    attr_reader :length

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

end

Version data entries

290 entries across 290 versions & 3 rubygems

Version Path
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/pops/parser/locatable.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/pops/parser/locatable.rb
puppet-5.3.7 lib/puppet/pops/parser/locatable.rb
puppet-5.3.7-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-5.3.7-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-5.3.7-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-4.10.12 lib/puppet/pops/parser/locatable.rb
puppet-4.10.12-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-4.10.12-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-4.10.12-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-4.10.11 lib/puppet/pops/parser/locatable.rb
puppet-4.10.11-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-4.10.11-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-4.10.11-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-5.3.6 lib/puppet/pops/parser/locatable.rb
puppet-5.3.6-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-5.3.6-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-5.3.6-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-5.3.5 lib/puppet/pops/parser/locatable.rb
puppet-5.3.5-x86-mingw32 lib/puppet/pops/parser/locatable.rb