Skip to content

Commit

Permalink
[Truffle] Convert the return value of an imported method automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Sep 19, 2016
1 parent 41e28fd commit b66f889
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion truffle/src/main/ruby/core/truffle/interop.rb
Expand Up @@ -15,7 +15,8 @@ def self.import_method(name)

Object.class_eval do
define_method(name.to_sym) do |*args|
Truffle::Interop.execute(method, *args)
ret = Truffle::Interop.execute(method, *args)
Truffle::Interop.from_java_string(ret)
end
end
end
Expand Down

0 comments on commit b66f889

Please sign in to comment.