class TTFunk::Placeholder

Encoded String placeholder.

@api private

Attributes

length[R]

Length of the placeholder @return [Integer]

name[R]

Planceholder name @return [Symbol]

position[RW]

Placeholder position in the cintaining Encoded String @return [Integer]

Public Class Methods

new(name, length: 1) click to toggle source

@param name [Symbol] @param length [Integer]

# File lib/ttfunk/placeholder.rb, line 22
def initialize(name, length: 1)
  @name = name
  @length = length
end