module Tins::StringNamedPlaceholders

A module that provides methods for working with named placeholders in strings.

This module adds functionality to extract named placeholders from strings and assign values to them, making it easier to work with template-style strings that contain named substitution points.

@example Extracting named placeholders from a string

"Hello %{name}, you have %{count} messages".named_placeholders
# => [:name, :count]

@example Assigning values to named placeholders

template = "Welcome %{user}, your balance is %{amount}"
template.named_placeholders_assign(user: "Alice", amount: "$100")
# => {:user=>"Alice", :amount=>"$100"}