Constructor
Wrapper()
Wrapper()Creates a new Wrapper instance with the opening and closing chars and optional text.
constructor(opening: Opening, closing: Closing, text: Text = '' as Text) {
super(opening, closing, text);
}Parameters
opening:Opening
opening:OpeningThe opening chars of a generic type variable Opening placed before the given text.
closing:Closing
closing:ClosingThe closing chars of a generic type variable Closing placed after the given text.
text:Text
text:TextOptional text of a generic type variable Text to wrap by given opening and closing chars.
Returns
The return value is a new instance of Wrapper.
Example usage
Last updated
Was this helpful?