Skip to content
Browse files

Add has_options util method

  • Loading branch information...
1 parent a132af5 commit 9ae974193d3fb6fc3bd0a07fde7acf8b19095acc @miyagawa committed Sep 21, 2013
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;

0 comments on commit 9ae9741

Please sign in to comment.
Something went wrong with that request. Please try again.