Skip to content
Browse files

add printf method

  • Loading branch information...
1 parent ef50e63 commit e61bdbe3960aa471a8b4e5d8a89614d1433959aa @matz matz committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 mrblib/print.rb
View
4 mrblib/print.rb
@@ -47,4 +47,8 @@ def p(*args)
end
args[0]
end
+
+ def printf(*args)
+ __printstr__(sprintf(*args))
+ end
end

0 comments on commit e61bdbe

Please sign in to comment.
Something went wrong with that request. Please try again.