Skip to content

Commit 28ace22

Browse files
committed
(MAINT) Rubocop - (lib) fixes for monkey_patches
1 parent 223ef05 commit 28ace22

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/puppet-strings/monkey_patches/display_object_command.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
# namespace, but this is disabled in our base object, and so instead gets
55
# URL-encoded.
66
require 'yard/server/commands/display_object_command'
7+
8+
# Monkey patch YARD::Server::Commands::DisplayObjectCommand object_path.
79
class YARD::Server::Commands::DisplayObjectCommand
810
private
9-
alias_method :object_path_yard, :object_path
11+
12+
alias object_path_yard object_path
1013
def object_path
1114
object_path_yard.gsub('_3A', ':')
1215
end

0 commit comments

Comments
 (0)