class

Arcane::Toast

Inherits Reference < Object

Constants

BORDER_STYLES = {Style::Rounded => BorderChars.new("╭", "╮", "╰", "╯", "─", "│"), Style::Rigid => BorderChars.new("┌", "┐", "└", "┘", "─", "│")}

Constructors

new(message : Content, title : String | Nil = nil, style : Style = Style::Rounded, width : Int32 | Nil = nil, padding : Int32 = 1)
Source

Instance methods

message
Source
message=(message : Content)
Source
padding
Source
padding=(padding : Int32)
Source
style
Source
style=(style : Style)
Source
title
Source
title=(title : String | Nil)
Source
to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source
width
Source
width=(width : Int32 | Nil)
Source

Nested types