Sha256: 90c471707de9afb1e749cfb0c69c9bffb7f2a66e9d00fedefb00f2d09c8b893f

Contents?: true

Size: 492 Bytes

Versions: 8

Compression:

Stored size: 492 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'

# Monkey patch YARD::Server::Commands::DisplayObjectCommand object_path.
class YARD::Server::Commands::DisplayObjectCommand
  private

  alias object_path_yard object_path
  def object_path
    object_path_yard.gsub('_3A', ':')
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puppet-strings-4.1.3 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-4.1.2 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-4.1.1 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-4.1.0 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-4.0.0 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-4.0.0.rc.1 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-3.0.1 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-3.0.0 lib/puppet-strings/monkey_patches/display_object_command.rb