Add convenience methods to the main class to help with Ruby integration.