class Distribution::Hash does Distribution::Locally { }

A Distribution implementation backed by the filesystem. It does not require a META6.json file, essentially providing a lower level Distribution::Path.

Methods§

method new§

method new($hash, :$prefix)

Creates a new Distribution::Hash instance from the metadata contained in $hash. All paths in the metadata will be prefixed with :$prefix.

method meta§

method meta()

Returns a Hash with the representation of the metadata.

method content§

Please check the content method in Distribution::Locally.

Returns an IO::Handle to the file represented by $name-path. $name-path is a relative path as it would be found in the metadata such as lib/Foo.rakumod or resources/foo.txt.

Typegraph§

Type relations for Distribution::Hash
raku-type-graph Hash Hash Map Map Hash->Map Mu Mu Any Any Any->Mu Cool Cool Cool->Any Iterable Iterable Associative Associative Map->Cool Map->Iterable Map->Associative Stash Stash Stash->Hash

Expand chart above