abstract class
UnicodePlot::GraphicsArea
- UnicodePlot::GraphicsArea
- Reference
- Object
Direct Known Subclasses
- UnicodePlot::BarplotGraphics
- UnicodePlot::BoxplotGraphics
- UnicodePlot::Canvas
- UnicodePlot::HeatmapGraphics
Defined in:
unicode_plot/graphics.crInstance Method Summary
- #blank : Char
- #ncols : Int32
- #nrows : Int32
-
#preprocess(io : IO) : GraphicsArea ->
Preprocessing hook (returns cleanup proc).
-
#print_row(io : IO, row : Int32, use_color : Bool) : Nil
Print a single row.
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
- #visible? : Bool
Instance Method Detail
def preprocess(io : IO) : GraphicsArea ->
#
Preprocessing hook (returns cleanup proc). Override in subclasses that need it.
abstract
def print_row(io : IO, row : Int32, use_color : Bool) : Nil
#
Print a single row. Implementations add ANSI color via use_color.
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>