require 'rvecmath' Java::ProcessingVecmathArcball::ArcballLibrary.new.load(JRuby.runtime, false) Java::ProcessingVecmathVec2::Vec2Library.new.load(JRuby.runtime, false) Java::ProcessingVecmathVec3::Vec3Library.new.load(JRuby.runtime, false) AppRender = Java::ProcessingVecmath::AppRender ShapeRender = Java::ProcessingVecmath::ShapeRender
The wise could use renderer.inspect to get the following, but it might not be obvious that they should do.
"#<Java::ProcessingVecmath::ShapeRender:0x49c2ebcc>"Actually it just occurred to me that inspect is a synonym for toString, that I should explicitly provide....
Well I learnt something new there it is not synonym after all, but chose to create a toString anyway.
No comments:
Post a Comment