Skip to content

Commit

Permalink
support method other than 'run'. PocketIO->new(..., method => 'name_o…
Browse files Browse the repository at this point in the history
…ther_than_run' )
  • Loading branch information
tokubass committed Mar 28, 2013
1 parent 3ad73a3 commit f878019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PocketIO.pm
Expand Up @@ -95,7 +95,7 @@ sub _get_handler {
$class->new;
};

return $instance->run;
return $instance->$method;
}

1;
Expand Down

0 comments on commit f878019

Please sign in to comment.