class RemiLib::Format::Formatter

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(controlString : String) #

Creates a new Formatter for the given control string.


[View source]

Instance Method Detail

def controlString : String #

The control string associated with this Formatter instance.


[View source]
def format(*args) : String #

Formats this Formatter's control string with the given arguments, then returns a new string.


[View source]