$rw->do(rem => 'jokers'); # Specifying both 'sql' and 'jokers' is useless.
$rw->do(); # Translate nothing.
+The C<do> method returns the L<Regexp::Wildcards> object.
+
=head2 C<type $type>
Notifies to convert the metacharacters that corresponds to the predefined type C<$type>.
sub convert {
my ($self, $wc, $type) = @_;
_check_self $self;
- my $config;
- if (defined $type) {
- $config = $self->_type($type);
- } else {
- $config = $self;
- }
+ my $config = (defined $type) ? $self->_type($type) : $self;
return unless defined $wc;
my $do = $config->{do};
my $e = $config->{escape};