-
Notifications
You must be signed in to change notification settings - Fork 0
JRuby and Truffle Interop
JRuby supports standard Truffle interop messages. This document explains what it does when it receives them, how to get it to explicitly send them, how to get it to send them using more idiomatic Ruby, and how what messages it sends for normal Ruby operations on foreign objects.
Returns true only for instances of Method and Proc.
Calls either a Method or Proc, passing the arguments as you'd expect. Doesn't pass a block.
Todo
Returns true only for instances of Array, Hash and String.
Call size on the object.
Returns true only for instances of String with a length of 1, which allows them to be unboxed as a character.
For a String, returns the first character. Unboxing empty strings is not supported and will cause an UnsupportedMessageException. For all other objects returns the object.
Returns true only for the nil object.
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo
Todo