Skip to content

Commit 7aae2f6

Browse files
committed
Simplify RDoc's store setting
1 parent 3271de4 commit 7aae2f6

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lib/rdoc/rdoc.rb

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class RDoc::RDoc
6969
##
7070
# The current documentation store
7171

72-
attr_reader :store
72+
attr_accessor :store
7373

7474
##
7575
# Add +klass+ that can generate output after parsing
@@ -208,14 +208,6 @@ def setup_output_dir(dir, force)
208208
last
209209
end
210210

211-
##
212-
# Sets the current documentation tree to +store+ and sets the store's rdoc
213-
# driver to this instance.
214-
215-
def store= store
216-
@store = store
217-
end
218-
219211
##
220212
# Update the flag file in an output directory.
221213

@@ -457,7 +449,7 @@ def document options
457449
end
458450
@options.finish
459451

460-
self.store = RDoc::Store.new(@options)
452+
@store = RDoc::Store.new(@options)
461453

462454
if @options.pipe then
463455
handle_pipe

0 commit comments

Comments
 (0)