Skip to content

Commit 7868b87

Browse files
committed
Eliminate private attribute warning
1 parent 3d21b52 commit 7868b87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/thor/line_editor/readline.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ def use_path_completion?
4848
end
4949

5050
class PathCompletion
51+
attr_reader :text
52+
private :text
53+
5154
def initialize(text)
5255
@text = text
5356
end
@@ -58,8 +61,6 @@ def matches
5861

5962
private
6063

61-
attr_reader :text
62-
6364
def relative_matches
6465
absolute_matches.map { |path| path.sub(base_path, '') }
6566
end

0 commit comments

Comments
 (0)