class

Cosmo::Intrinsic::Chars::Pad

Inherits Cosmo::Intrinsic::IFunction / Cosmo::Callable / Reference / Object

Adds the padding character to the beginning and end of the character size times

Constructors

new(interpreter : Interpreter, _self : Char, token : Token)
Source

Instance methods

arity

The amount of parameters this function will accept

Source
call(args : Array(ValueType)) : String

char padding: The character to add to the end and beginning uint size: How many times the padding character should be repeated

Source