convert the method to attr_reader
This commit is contained in:
parent
7e6b2c1340
commit
fcfc48c3ec
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue