From fcfc48c3ec53e0fde3b8c0e15296b772a8237a24 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Mon, 30 May 2011 16:01:30 +0200 Subject: [PATCH] convert the method to attr_reader --- lib/polecat/index_writer.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/polecat/index_writer.rb b/lib/polecat/index_writer.rb index b4c6273..1cbab1c 100644 --- a/lib/polecat/index_writer.rb +++ b/lib/polecat/index_writer.rb @@ -8,6 +8,7 @@ class Polecat # file is written as an extra lock. It then writes a new file into the # directory, which has all documents. class IndexWriter + attr_reader :path # create a new IndexWriter # @@ -24,13 +25,6 @@ class Polecat end end - # returns the path of the IndexWriter - # - # @return [String] the path of the IndexWriter - def path - @path - end - # returns the count of elements not flushed # # This method returns the count of all elements stored in the Writer, but