Omit empty parentheses in Ruby for cursor.close in Ruby