Skip to content

Commit

Permalink
[Truffle] Shim IO::printf from Rubinius as it uses Sprinter
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Apr 23, 2015
1 parent f1e5ff5 commit d5bd288
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions truffle/src/main/ruby/core/shims.rb
Expand Up @@ -187,3 +187,14 @@ module Math

$PROGRAM_NAME = $0
$$ = Process.pid

# IO::printf from Rubinius uses Rubinius::Sprinter

class IO

def printf(fmt, *args)
fmt = StringValue(fmt)
write sprintf(fmt, *args)
end

end

0 comments on commit d5bd288

Please sign in to comment.