abstract class UnicodePlot::GraphicsArea

Direct Known Subclasses

Defined in:

unicode_plot/graphics.cr

Instance Method Summary

Instance Method Detail

abstract def blank : Char #

[View source]
abstract def ncols : Int32 #

[View source]
abstract def nrows : Int32 #

[View source]
def preprocess(io : IO) : GraphicsArea -> #

Preprocessing hook (returns cleanup proc). Override in subclasses that need it.


[View source]
abstract def print_row(io : IO, row : Int32, use_color : Bool) : Nil #

Print a single row. Implementations add ANSI color via use_color.


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

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>

[View source]
abstract def visible? : Bool #

[View source]