Sha256: ded8f66cd6862ada17981af7150084326358a38d2eff966071d9f6c0083c7290

Contents?: true

Size: 507 Bytes

Versions: 32

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

# Interface for something that is "locatable" (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

32 entries across 32 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/pops/parser/locatable.rb
puppet-8.10.0-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-8.10.0-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-8.10.0-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-8.9.0 lib/puppet/pops/parser/locatable.rb
puppet-8.9.0-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-8.9.0-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-8.9.0-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-8.8.1 lib/puppet/pops/parser/locatable.rb
puppet-8.8.1-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-8.8.1-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-8.8.1-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-8.7.0 lib/puppet/pops/parser/locatable.rb
puppet-8.7.0-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-8.7.0-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-8.7.0-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-8.6.0 lib/puppet/pops/parser/locatable.rb
puppet-8.6.0-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-8.6.0-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-8.6.0-universal-darwin lib/puppet/pops/parser/locatable.rb