class CharArray
- CharArray
- Reference
- Object
Overview
This is used as an alternative to String in cases where we need constant time random access and ranges of characters in the string.
Defined in:
char_array.crConstructors
Instance Method Summary
- #[](start_index : Int, count : Int) : String
- #[](index : Int) : Char
- #[](range : Range(Int32, Int32)) : String
- #size
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
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
.