Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: gphat/message-stack-parser
base: master
...
head fork: genehack/message-stack-parser
compare: make-parse-a-class-method
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 12, 2012
@genehack genehack Make parse() a class method 3912683
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/Message/Stack/Parser/DataVerifier.pm
View
7 lib/Message/Stack/Parser/DataVerifier.pm
@@ -18,8 +18,9 @@ use Message::Stack::Message;
my $scope = 'login';
# Pass a Data::Verifier::Results object to parse.
- my $ms = Message::Stack::Parser::DataVerifier->new->parse(
- Message::Stack->new,
+ my $ms = Message::Stack;
+ Message::Stack::Parser::DataVerifier->parse(
+ $ms,
$scope,
$dv_results
);
@@ -75,7 +76,7 @@ the C<$scope> that is passed in.
=cut
sub parse {
- my ($self, $stack, $scope, $results) = @_;
+ my ($class, $stack, $scope, $results) = @_;
foreach my $f ($results->missings) {
$stack->add(Message::Stack::Message->new(

No commit comments for this range

Something went wrong with that request. Please try again.