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

一个由文件系统支持的 Distribution 实现。它不需要 META6.json 文件,本质上提供了一个更低级的 Distribution::Path

方法§

方法 new§

method new($hash:$prefix)

$hash 中包含的元数据创建一个新的 Distribution::Hash 实例。元数据中的所有路径都将以 :$prefix 为前缀。

方法 meta§

method meta()

返回一个包含元数据表示的哈希表。

方法 content§

请查看 Distribution::Locally 中的 content 方法

返回一个指向由 $name-path 表示的文件的 IO::Handle$name-path 是一个相对路径,它可以在元数据中找到,例如 lib/Foo.rakumodresources/foo.txt

类型图§

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 中文

展开上面的图表