File Coverage

blib/lib/Acme/rafl/Everywhere.pm
Criterion Covered Total %
statement 14 14 100.0
branch 1 2 50.0
condition n/a
subroutine 4 4 100.0
pod 0 2 0.0
total 19 22 86.3


line stmt bran cond sub pod time code
1 1     1   579 use strict;
  1         1  
  1         26  
2 1     1   4 use warnings;
  1         1  
  1         222  
3             package Acme::rafl::Everywhere;
4             {
5             $Acme::rafl::Everywhere::VERSION = '0.011';
6             }
7             # ABSTRACT: rafl is so everywhere, he has his own Acme module!
8              
9             my @default_facts = (
10             q{rafl is so everywhere, he's on both the vim and emacs mailing list, arguing for each!},
11             q{rafl is so everywhere, he's behind you right now!},
12             q{rafl is so everywhere, even Chuck Norris checks under his bed every night!},
13             q{rafl is so everywhere, Freddy Krueger is afraid of falling asleep!},
14             q{rafl is so everywhere, Schrodinger's cat's got nothing on him!},
15             q{rafl is so everywhere, he sent me postcards from the surface of the sun!},
16             q{rafl is so everywhere, when you want to abandon a module, rafl gets co-maint automatically!},
17             q{rafl is so everywhere, you can find Waldo simply by searching for anyone who isn't rafl!},
18             q{rafl is so everywhere, Jesus owes him a pull request on Github!},
19             q{rafl is so everywhere, he has the first commit of Javascript on Parrot!},
20             q{rafl is so everywhere, when you breathe, that's rafl you're breathing!},
21             q{rafl is so everywhere, he makes a cameo in the video from The Ring!},
22             q{rafl is so everywhere, he ar in yur Perl debuggr, pointing at yore crappy code!},
23             q{rafl is so everywhere, he is the default entry in your SSH authorized_keys file!},
24             q{rafl is so everywhere, he issued the first bug report for Perl, before it existed!},
25             q{rafl is so everywhere, he participated in the space olympics!},
26             q{rafl is so everywhere, he can visit all the YAPCs even if they are on the same day!},
27             q{rafl is so everywhere, every picture is actually photo-bombed by rafl!},
28             q{rafl is so everywhere, Git might be renamed to Girafl to clarify its distributed design!},
29             q{rafl is so everywhere, the post office asks him for directions!},
30             q{rafl is so everywhere, he has more foursquare checkins on Mars than the Curiosity rover!},
31             q{rafl is so everywhere, quantum teleportation papers cite him as main study source!},
32             q{rafl is so everywhere, he can patch your code even before you push it!},
33             q{rafl is so everywhere, he caused an integer overflow in every Airline's mileage system!},
34             q{rafl is so everywhere, there's a saved seat for him in every conference in the world!},
35             q{rafl is so everywhere, there's a DuckDuckGo.com "!rafl" bang syntax!},
36             q{rafl is so everywhere, he can go sightseeing without leaving his hotel room!},
37             q{rafl is so everywhere, the longest-running scavanger hunt for him took 0.0015 seconds!},
38             q{rafl is so everywhere, `grep -i 'rafl' /dev/sda` *always* matches!},
39             q{rafl is so everywhere, Internet Census 2012 found 1.3 billion active IP addresses and estimates that 1.1 billion of them are being used by rafl!},
40             q{rafl is so everywhere, the next version of Debian is replacing /bin/cat with a shell alias for grep 'rafl'},
41             q{rafl is so everywhere, the Da Vinci code is actually a Base64 Rot13 representation of rafl},
42             );
43              
44             sub new {
45 2     2 0 17 my $class = shift;
46 2         7 my $self = bless {@_}, $class;
47              
48 2 50       14 exists $self->{'facts'}
49             or $self->{'facts'} = \@default_facts;
50              
51 2         8 return $self;
52             }
53              
54             sub fact {
55 10     10 0 2235 my $self = shift;
56 10         91 my $facts = $self->{'facts'};
57 10         17 return $facts->[ int rand scalar @{$facts} ];
  10         139  
58             }
59              
60             1;
61              
62             __END__