Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add has_options util method

  • Loading branch information...
commit 9ae974193d3fb6fc3bd0a07fde7acf8b19095acc 1 parent a132af5
@miyagawa authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Module/CPANfile/Requirement.pm
View
4 lib/Module/CPANfile/Requirement.pm
@@ -18,4 +18,8 @@ sub version { $_[0]->{version} }
sub options { $_[0]->{options} }
+sub has_options {
+ keys %{$_[0]->{options}} > 0;
+}
+
1;
Please sign in to comment.
Something went wrong with that request. Please try again.