public static boolean setIfPossible ( final Ruby ruby , final Object target , final String name , final Object value ) { boolean success = false ; if ( defined ( ruby , target , name + "=" ) ) { JavaEmbedUtils . invokeMethod ( ruby , target , name + "=" , new Object [ ] { value } , void . class ) ; success = true ; } return success ; }
Set a property on a Ruby object if possible .