diff --git a/lib/scanf.rb b/lib/scanf.rb index 816bc27221..1662d08e6c 100644 --- a/lib/scanf.rb +++ b/lib/scanf.rb @@ -691,7 +691,7 @@ end module Kernel private - def scanf(fs) - STDIN.scanf(fs) + def scanf(fs,&b) + STDIN.scanf(fs,&b) end end