class
RemiLib::Format::Formatter
- RemiLib::Format::Formatter
- Reference
- Object
Overview
The Formatter class is used to format string data.
See the documentation on the RemiLib::Format module for the supported
syntax.
Defined in:
remilib/format.crConstructors
-
.new(controlString : String)
Creates a new
Formatterfor the given control string.
Instance Method Summary
-
#controlString : String
The control string associated with this
Formatterinstance. -
#format(*args) : String
Formats this
Formatter's control string with the given arguments, then returns a new string.
Instance methods inherited from class Object
toRsconf(io : IO, *, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : NiltoRsconf(*, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : String toRsconf
Class methods inherited from class Object
fromRsconf(toplevel : RemiLib::RSConf::RSValue)fromRsconf(data : String | IO | Path) fromRsconf
Constructor Detail
Creates a new Formatter for the given control string.
Instance Method Detail
The control string associated with this Formatter instance.
Formats this Formatter's control string with the given arguments, then
returns a new string.