class TextUi::TextBlock

Defined in:

textui/text_document.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(document : TextDocument, text : String = "", previous_block : Nil | TextUi::TextBlock = nil, next_block : Nil | TextUi::TextBlock = nil) #

[View source]

Instance Method Detail

def apply_format(start : Int32, finish : Int32, format : Format) #

[View source]
def formats : Array(Format) #

[View source]
def inspect(io : IO) #
Description copied from class Reference

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

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

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>

[View source]
def next_block : TextBlock | Nil #

def next_block=(next_block : TextBlock | Nil) #

[View source]
def next_block? : TextBlock | Nil | Nil #

def previous_block : TextBlock | Nil #

def previous_block=(previous_block : TextBlock | Nil) #

[View source]
def previous_block? : TextBlock | Nil | Nil #

def reset_format #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &) #

[View source]
def state : State #

[View source]
def state=(state : State) #

[View source]
def text : String #

[View source]
def text=(text : String) #

[View source]