Skip to content

Commit

Permalink
Added code examples to methods parts and plus
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Olof Hendig committed Jul 4, 2016
1 parent c79e637 commit c8f953e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/Type/Version.pod6
Expand Up @@ -46,12 +46,22 @@ numeric and alphabetic characters.
Returns the list of parts that make up this Version object
my $v1 = v1.0.1;
my $v2 = v1.0.1+;
say $v1.parts; # (1 0 1)
say $v2.parts; # (1 0 1)
=head2 method plus
method plus(Version:D:) returns Bool:D
Returns C<True> if comparisons against this version allow larger versions too.
my $v1 = v1.0.1;
my $v2 = v1.0.1+;
say $v1.plus; # False
say $v2.plus; # True
=head2 method Str
method Str(Version:D:) returns Str:D
Expand Down

0 comments on commit c8f953e

Please sign in to comment.