Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogbert17/951106b1c4c66848d9bc491c4753d3e6 to your computer and use it in GitHub Desktop.
Save dogbert17/951106b1c4c66848d9bc491c4753d3e6 to your computer and use it in GitHub Desktop.
Attempt to document Version.Str and gist
=head2 method Str
method Str(Version:D:) returns Str:D
Returns a string representation of the invocant.
my $v1 = Version.new(v1.0.1+);
my $v2 = Version.new('1.0.1+');
say $v1.Str; # 1.0.1+
say $v2.Str; # 1.0.1+
=head2 method gist
method gist(Version:D:) returns Str:D
Returns a string representation of the invocant, just like
L<Str|#method_Str>, prepended with a lower-case C<v>.
my $v1 = Version.new(v1.0.1+);
my $v2 = Version.new('1.0.1+');
say $v1.gist; # v1.0.1+
say $v2.gist; # v1.0.1+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment