struct

Crig::Loaders::FileLoader(T)

Inherits Enumerable < Struct < Value < Object

Constructors

Class methods

from_bytes(bytes : Array(UInt8)) : FileLoader(Array(UInt8))
Source
from_bytes_multi(bytes_vec : Array(Array(UInt8))) : FileLoader(Array(UInt8))
Source
with_dir(directory : String) : FileLoader(String | FileLoaderError)
Source
with_glob(pattern : String) : FileLoader(String | FileLoaderError)
Source

Instance methods

each

Must yield this collection's elements to the block.

Source
ignore_errors
Source
into_iter
Source
read
Source
read_with_path
Source
to_a

Returns an Array with all the elements in the collection.

(1..5).to_a # => [1, 2, 3, 4, 5]
Source