struct Fancyline::StringUtil::Dimension

Overview

Dimensions of a string when displayed on a terminal. Stores the count of characters in each row (#rows), the longest row (#columns), and the total count of human-visible #characters.

Defined in:

fancyline/string_util.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rows : Array(Int32), columns : Int32, characters : Int32) #

[View source]

Instance Method Detail

def characters : Int32 #

def clone #

[View source]
def columns : Int32 #

def copy_with(rows _rows = @rows, columns _columns = @columns, characters _characters = @characters) #

[View source]
def rows : Array(Int32) #