Module: YARD
Overview
Backward compatibility for gem specification lookup
Constant Summary
- 
    CONFIG_DIR =
    # File 'lib/yard.rb', line 13Deprecated.
Config::CONFIG_DIR
 - 
    ROOT =
    # File 'lib/yard.rb', line 4
The root path for
YARDsource librariesFile.(File.dirname(__FILE__))
 - 
    TEMPLATE_ROOT =
    # File 'lib/yard.rb', line 10
The root path for
YARDbuiltin templatesFile.join(ROOT, '..', 'templates')
 - 
    VERSION =
    
# File 'lib/yard/version.rb', line 5'0.9.37' 
Class Attribute Summary
- .ruby18? ⇒ Boolean readonly
 - .ruby19? ⇒ Boolean readonly
 - .ruby2? ⇒ Boolean readonly
 - .ruby31? ⇒ Boolean readonly
 - .ruby3? ⇒ Boolean readonly
 - .windows? ⇒ Boolean readonly
 
Class Method Summary
- .load_plugins ⇒ Boolean deprecated Deprecated.
 - 
    
      .parse(*args)  
    
    
An alias to
::YARD::Parser::SourceParser's parsing method. - 
    
      .parse_string(*args)  
    
    
An alias to
::YARD::Parser::SourceParser's parsing method. 
Class Attribute Details
    .ruby18?  ⇒ Boolean  (readonly)
  
# File 'lib/yard.rb', line 44
def self.ruby18?; !ruby19? end
    .ruby19?  ⇒ Boolean  (readonly)
  
# File 'lib/yard.rb', line 47
def self.ruby19?; @ruby19 ||= (RUBY_VERSION >= "1.9.1") end
    .ruby2?  ⇒ Boolean  (readonly)
  
# File 'lib/yard.rb', line 50
def self.ruby2?; @ruby2 ||= (RUBY_VERSION >= '2.0.0') end
    .ruby31?  ⇒ Boolean  (readonly)
  
# File 'lib/yard.rb', line 56
def self.ruby31?; @ruby31 ||= (RUBY_VERSION >= '3.1.0') end
    .ruby3?  ⇒ Boolean  (readonly)
  
# File 'lib/yard.rb', line 53
def self.ruby3?; @ruby3 ||= (RUBY_VERSION >= '3.0.0') end
    .windows?  ⇒ Boolean  (readonly)
  
# File 'lib/yard.rb', line 34
def self.windows? return @windows if defined? @windows require 'rbconfig' @windows = ::RbConfig::CONFIG['host_os'] =~ /mingw|win32|cygwin/ ? true : false ensure @windows ||= false end
Class Method Details
    .load_plugins  ⇒ Boolean 
  
Deprecated. 
Loads gems that match the name 'yard-' (recommended) or 'yard_' except
those listed in ~/.yard/ignored_plugins. This is called immediately
after YARD is loaded to allow plugin support.
# File 'lib/yard.rb', line 31
def self.load_plugins; YARD::Config.load_plugins end
.parse(*args)
An alias to ::YARD::Parser::SourceParser's parsing method
# File 'lib/yard.rb', line 20
def self.parse(*args) Parser::SourceParser.parse(*args) end
.parse_string(*args)
An alias to ::YARD::Parser::SourceParser's parsing method
# File 'lib/yard.rb', line 27
def self.parse_string(*args) Parser::SourceParser.parse_string(*args) end