From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D76351F4C4 for ; Wed, 30 Oct 2019 09:23:57 +0000 (UTC) From: Eric Wong To: mogilefs-client-public@bogomips.org Subject: [PATCH 3/3] test_client: quiet warnings about redefining accessors Date: Wed, 30 Oct 2019 09:23:57 +0000 Message-Id: <20191030092357.30238-4-e@80x24.org> In-Reply-To: <20191030092357.30238-1-e@80x24.org> References: <20191030092357.30238-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: lasterr and lasterrstr are already readers, so we only need to expose them as writers, not as both. --- test/test_client.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_client.rb b/test/test_client.rb index a6e6c1f..cbf298a 100644 --- a/test/test_client.rb +++ b/test/test_client.rb @@ -3,7 +3,8 @@ require 'mogilefs' class MogileFS::Backend - attr_accessor :timeout, :lasterr, :lasterrstr, :hosts + attr_accessor :timeout, :hosts + attr_writer :lasterr, :lasterrstr end class MogileFS::Client