lib/yard/globals.rb in yard-0.8.1 vs lib/yard/globals.rb in yard-0.8.2

- old
+ new

@@ -2,12 +2,12 @@ # Shortcut for creating a YARD::CodeObjects::Proxy via a path # # @see YARD::CodeObjects::Proxy # @see YARD::Registry.resolve -def P(namespace, name = nil) +def P(namespace, name = nil, type = nil) namespace, name = nil, namespace if name.nil? - YARD::Registry.resolve(namespace, name, false, true) + YARD::Registry.resolve(namespace, name, false, true, type) end # The global {YARD::Logger} instance # # @return [YARD::Logger] the global {YARD::Logger} instance