Documentation
/ role Distribution
/ class Distribution::Path
class Distribution::Path
Distribution::Path
class Distribution::Path does Distribution::Locally { }
A Distribution implementation backed by the filesystem. It requires a
META6.json
file at its root.
Methods
method new
method new(IO::Path $prefix, IO::Path :$meta-file = IO::Path)
Creates a new Distribution::Path
instance from the META6.json
file found
at the given $prefix
, and from which all paths in the metadata will be
prefixed with. :$meta-file
may optionally be passed if a filename other than
META6.json
needs to be used.
method meta(Distribution::Path:D:)
Returns a Hash with the representation of the metadata.
method content
Distribution::Locally#method_content
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
.
See Also class AST
Abstract representation of a piece of source code
class atomicint
Integer (native storage at the platform's atomic operation size)
class Collation
Encapsulates instructions about how strings should be sorted
class Cool
Object that can be treated as both a string and number
class ForeignCode
Rakudo-specific class that wraps around code in other languages (generally NQP)
class Format
Convert values to a string given a format specification
class HyperSeq
An object for performing batches of work in parallel with ordered
output
class Mu
The root of the Raku type hierarchy.
class Nil
Absence of a value or a benign failure
class Proxy
Item container with custom storage and retrieval
class RaceSeq
Performs batches of work in parallel without respecting original
order.
class Rat
Rational number (limited-precision)
class Routine
Code object with its own lexical scope and return handling
class Scalar
A mostly transparent container used for indirections
š¦ / Documentation
/ role Distribution
/ class Distribution::Path
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society.
All rights reserved.
This website uses cookies for analytics.
Got it!