Skip to content

Commit

Permalink
Type name changed to bare words, as they should be.
Browse files Browse the repository at this point in the history
  • Loading branch information
Panu Ervamaa committed Aug 2, 2009
1 parent deb7b89 commit 2ce9b12
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/IO/Prompt.pm
Expand Up @@ -34,16 +34,16 @@ method ask ( Str $message=$!message,


my $r = do { my $r = do {
given $type { given $type {
when .^isa('Bool') { self.ask_yn( |$args ); } when .^isa(Bool) { self.ask_yn( |$args ); }
when .^isa('Int') { self.ask_int( |$args ); } when .^isa(Int) { self.ask_int( |$args ); }
when .^isa('Num') { self.ask_num( |$args ); } when .^isa(Num) { self.ask_num( |$args ); }
when .^isa('Str') { self.ask_str( |$args ); } when .^isa(Str) { self.ask_str( |$args ); }
default { default {
given $default { given $default {
when .^isa('Bool') { self.ask_yn( |$args ); } when .^isa(Bool) { self.ask_yn( |$args ); }
when .^isa('Int') { self.ask_int( |$args ); } when .^isa(Int) { self.ask_int( |$args ); }
when .^isa('Num') { self.ask_num( |$args ); } when .^isa(Num) { self.ask_num( |$args ); }
when .^isa('Str') { self.ask_str( |$args ); } when .^isa(Str) { self.ask_str( |$args ); }
default { self.ask_str( |$args ); } default { self.ask_str( |$args ); }
} # given $default } # given $default
} # given $type default } # given $type default
Expand Down

0 comments on commit 2ce9b12

Please sign in to comment.