class TextUi::TextBlock
- TextUi::TextBlock
- Reference
- Object
Defined in:
textui/text_document.crConstructors
Instance Method Summary
- #apply_format(start : Int32, finish : Int32, format : Format)
- #formats : Array(Format)
-
#inspect(io : IO)
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
- #next_block : TextBlock | Nil
- #next_block=(next_block : TextBlock | Nil)
- #next_block? : TextBlock | Nil | Nil
- #previous_block : TextBlock | Nil
- #previous_block=(previous_block : TextBlock | Nil)
- #previous_block? : TextBlock | Nil | Nil
- #reset_format
- #size(*args, **options)
- #size(*args, **options, &)
- #state : State
- #state=(state : State)
- #text : String
- #text=(text : String)
Constructor Detail
def self.new(document : TextDocument, text : String = "", previous_block : Nil | TextUi::TextBlock = nil, next_block : Nil | TextUi::TextBlock = nil)
#
Instance Method Detail
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>