Sha256: e37609c6799fb1343f6973d36f6df7e536c1d7b729a8928ddff16d768763feaa

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

module TTFunk
  # Encoded String placeholder.
  #
  # @api private
  class Placeholder
    # Placeholder position in the cintaining Encoded String
    # @return [Integer]
    attr_accessor :position

    # Planceholder name
    # @return [Symbol]
    attr_reader :name

    # Length of the placeholder
    # @return [Integer]
    attr_reader :length

    # @param name [Symbol]
    # @param length [Integer]
    def initialize(name, length: 1)
      @name = name
      @length = length
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ttfunk-1.8.0 lib/ttfunk/placeholder.rb