code: 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;
      }
docs: Set a property on a Ruby object, if possible.
  
  <p>
  If the target responds to {@code name=}, the property will be set.
  Otherwise, not.
  </p>
  
  @param ruby
  The Ruby interpreter.
  @param target
  The target object.
  @param name
  The basic name of the property.
  @param value
  The value to attempt to set.
  @return {@code true} if successful, otherwise {@code false}