Sha256: 14a65a3184cd8fbf476af7a0f9db59f7013c1dad0c13778bcee75d0aa5f1c03e

Contents?: true

Size: 438 Bytes

Versions: 11

Compression:

Stored size: 438 Bytes

Contents

# Global methods

# Shortcut for creating a YARD::CodeObjects::Proxy via a path
# 
# @see YARD::CodeObjects::Proxy
# @see YARD::Registry#resolve
def P(namespace, name = nil)
  namespace, name = nil, namespace if name.nil?
  YARD::Registry.resolve(namespace, name, false, true)
end

# The global {YARD::Logger} instance
# 
# @return [YARD::Logger] the global {YARD::Logger} instance
# @see YARD::Logger
def log
  YARD::Logger.instance
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
yard-0.5.8 lib/yard/globals.rb
yard-0.5.7 lib/yard/globals.rb
yard-0.5.6 lib/yard/globals.rb
yard-0.5.5 lib/yard/globals.rb
yard-0.5.4 lib/yard/globals.rb
yard-0.5.3 lib/yard/globals.rb
yard-0.5.2 lib/yard/globals.rb
yard-0.5.1p1 lib/yard/globals.rb
yard-0.5.1 lib/yard/globals.rb
yard-0.5.0 lib/yard/globals.rb
yard-0.4.0 lib/yard/globals.rb