Permalink
Browse files

add printf method

  • Loading branch information...
matz committed Jun 20, 2012
1 parent ef50e63 commit e61bdbe3960aa471a8b4e5d8a89614d1433959aa
Showing with 4 additions and 0 deletions.
  1. +4 −0 mrblib/print.rb
View
@@ -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.