| 1 | package Parse::Functions::Ruby; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Parse::Functions (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | our $VERSION = '0.01'; | |
| 9 | 1 | our @ISA = qw(Parse::Functions); | |
| 10 | |||
| 11 | ###################################################################### | ||
| 12 | |||
| 13 | 3 | ▶ | sub function_re { |
|
Subroutine
function_re: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 3 | my ($self) = @_; | |
| 15 | |||
| 16 | 3 | my $newline = $self->newline; | |
| 17 | 3 | return qr/ | |
| 18 | (?: | ||
| 19 | =begin.*?=end | ||
| 20 | | | ||
| 21 | (?:^|$newline)\s* | ||
| 22 | (?: | ||
| 23 | (?:def)\s+(\w+) | ||
| 24 | ) | ||
| 25 | ) | ||
| 26 | /sx; | ||
| 27 | } | ||
| 28 | |||
| 29 | 1 | 1; | |
| 30 | |||
| 31 | # Copyright 2008-2014 The Padre development team as listed in Padre.pm. | ||
| 32 | # LICENSE | ||
| 33 | # This program is free software; you can redistribute it and/or | ||
| 34 | # modify it under the same terms as Perl 5 itself. | ||
| 35 | |||