Sha256: 6f7bd33c264e88c2bd18c2e02182cc46f6bf15cd9e5e5e7e2dd92f9d2f37f4bd

Contents?: true

Size: 396 Bytes

Versions: 7

Compression:

Stored size: 396 Bytes

Contents

# 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

7 entries across 7 versions & 1 rubygems

Version Path
puppet-strings-2.5.0 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-2.4.0 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-2.3.1 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-2.3.0 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-2.2.0 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-2.1.0 lib/puppet-strings/monkey_patches/display_object_command.rb
puppet-strings-2.0.0 lib/puppet-strings/monkey_patches/display_object_command.rb