rectalogic

Untitled

Jun 29th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.31 KB | None | 0 0
  1. class Foo
  2.   include java.lang.Readable
  3.   java_signature 'int read(java.nio.CharBuffer)'
  4.   def read(cb)
  5.     3
  6.   end
  7. end
  8. [12] pry(main)> Foo.become_java!.declared_methods.each {|m| puts m.toGenericString }
  9.  
  10. public org.jruby.runtime.builtin.IRubyObject rubyobj.Foo.read(org.jruby.runtime.builtin.IRubyObject[])
  11. ...
Advertisement
Add Comment
Please, Sign In to add comment