Fixing the ruby snippet to support not having an arg