X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FAction.pm;h=881c120e8dbd126fec459affddbc88704e51583a;hp=555c939589f97967f084b83b73257cbffb5a4f7f;hb=342d21698a97962c51114b6ebc6bb8626511cfc6;hpb=f98182507920d5fd40007a4d0ed1bf083134eaea diff --git a/lib/Catalyst/Action.pm b/lib/Catalyst/Action.pm index 555c939..881c120 100644 --- a/lib/Catalyst/Action.pm +++ b/lib/Catalyst/Action.pm @@ -103,6 +103,10 @@ sub number_of_captures { return $self->attributes->{CaptureArgs}[0] || 0; } +sub scheme { + return exists $_[0]->attributes->{Scheme} ? $_[0]->attributes->{Scheme}[0] : undef; +} + sub list_extra_info { my $self = shift; return { @@ -192,6 +196,10 @@ Returns the number of captures this action expects for L