Improve ruby-end