TextUi::TextBlock
Inherits Reference / Object
Constructors
new(document : TextDocument, text : String = "", previous_block : Nil | TextUi::TextBlock = nil, next_block : Nil | TextUi::TextBlock = nil)
SourceInstance methods
apply_format(start : Int32, finish : Int32, format : Format)
Sourceformats
Sourceinspect(io : IO)
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>
next_block
Sourcenext_block=(next_block : TextBlock | Nil)
Sourcenext_block?
Sourceprevious_block
Sourceprevious_block=(previous_block : TextBlock | Nil)
Sourceprevious_block?
Sourcereset_format
Sourcesize(*args, **options)
Sourcesize(*args, **options, &)
Sourcestate
Sourcestate=(state : State)
Sourcetext
Sourcetext=(text : String)
Source