Sha256: f11b3c72d365e810024f9ae12fcabbe20aba6b30f6e0e0861082f402d875401d

Contents?: true

Size: 478 Bytes

Versions: 457

Compression:

Stored size: 478 Bytes

Contents

# 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

457 entries across 457 versions & 2 rubygems

Version Path
puppet-7.34.0 lib/puppet/pops/parser/locatable.rb
puppet-7.34.0-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-7.34.0-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-7.34.0-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-7.33.0 lib/puppet/pops/parser/locatable.rb
puppet-7.33.0-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-7.33.0-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-7.33.0-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-7.32.1 lib/puppet/pops/parser/locatable.rb
puppet-7.32.1-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-7.32.1-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-7.32.1-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-7.31.0 lib/puppet/pops/parser/locatable.rb
puppet-7.31.0-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-7.31.0-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-7.31.0-universal-darwin lib/puppet/pops/parser/locatable.rb
puppet-7.30.0 lib/puppet/pops/parser/locatable.rb
puppet-7.30.0-x86-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-7.30.0-x64-mingw32 lib/puppet/pops/parser/locatable.rb
puppet-7.30.0-universal-darwin lib/puppet/pops/parser/locatable.rb