struct Tallboy::Text

Defined in:

tallboy/render_tree_builder/node/text.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(value : String, width : Int32, align : Alignment) #

[View source]
def self.new(cell : ComputedCell) #

[View source]

Instance Method Detail

def align : Tallboy::Alignment #

[View source]
def height #

[View source]
def inspect #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def render(line_num : Int32 = 0) #

[View source]
def value(line_num) #

[View source]
def value : String #

[View source]
def width : Int32 #

[View source]
def with_align(value, align, width) #

[View source]
def with_padding(value) #

[View source]