Execute a custom resource within a ruby_block

Hello

Within a ruby_block one can execute Chef resources :
Chef::Resource::Execute.new('update-java-alternatives', run_context)

but I didn't find out any way to also execute a custom resource within a ruby_block.