Sha256: e1b7e5a283e34efbaa869479005dc05e827b912263ed8dbb115f09e3d415bfa5

Contents?: true

Size: 427 Bytes

Versions: 4

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

# Monkey patch URL decoding in object displays. Usually :: is interpreted as a
# namespace, but this is disabled in our base object, and so instead gets
# URL-encoded.
require 'yard/server/commands/display_object_command'
class YARD::Server::Commands::DisplayObjectCommand
  private
  alias_method :object_path_yard, :object_path
  def object_path
    object_path_yard.gsub('_3A', ':')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppet-strings-2.9.0 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-2.8.0 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-2.7.0 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-2.6.0 lib/puppet-strings/monkey_patches/display_object_command.rb