struct DotDisplay
- DotDisplay
- Struct
- Value
- Object
Defined in:
dot_display.crConstant Summary
-
MASKS =
UInt8[1_u8, 8_u8, 2_u8, 16_u8, 4_u8, 32_u8, 64_u8, 128_u8]
Constructors
Class Method Summary
-
.braille_char(bits : UInt8) : Char
Given a UInt8 as the bits representing a 2x8 char, return the corresponding braille character.
Instance Method Summary
- #[](x, y)
- #[]=(x, y, value)
- #bytes : Bytes
- #height : UInt32
- #height=(height : UInt32)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #width : UInt32
- #width=(width : UInt32)
Constructor Detail
Class Method Detail
def self.braille_char(bits : UInt8) : Char
#
Given a UInt8 as the bits representing a 2x8 char, return the corresponding braille character.
Instance Method Detail
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.