Files
news.gitea.happylizard.me/bin/gems/ttfunk-1.8.0/lib/ttfunk/placeholder.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

28 lines
535 B
Ruby

# 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