Sha256: 737f7a74948ade1b383b54930bf365fe216accc3ca7d7de959be749ea50ee018

Contents?: true

Size: 1.43 KB

Versions: 14

Compression:

Stored size: 1.43 KB

Contents

module YARD
  VERSION = "0.8.2.1"

  # The root path for YARD source libraries
  ROOT = File.expand_path(File.dirname(__FILE__))

  # The root path for YARD builtin templates
  TEMPLATE_ROOT = File.join(ROOT, '..', 'templates')

  # @deprecated Use {Config::CONFIG_DIR}
  CONFIG_DIR = File.expand_path('~/.yard')

  # An alias to {Parser::SourceParser}'s parsing method
  #
  # @example Parse a glob of files
  #   YARD.parse('lib/**/*.rb')
  # @see Parser::SourceParser.parse
  def self.parse(*args) Parser::SourceParser.parse(*args) end

  # An alias to {Parser::SourceParser}'s parsing method
  #
  # @example Parse a string of input
  #   YARD.parse_string('class Foo; end')
  # @see Parser::SourceParser.parse_string
  def self.parse_string(*args) Parser::SourceParser.parse_string(*args) end

  # (see YARD::Config.load_plugins)
  # @deprecated Use {Config.load_plugins}
  def self.load_plugins; YARD::Config.load_plugins end
end

# Keep track of Ruby version for compatibility code
RUBY19, RUBY18 = *(RUBY_VERSION >= "1.9.1" ? [true, false] : [false, true])

# Load Ruby core extension classes
Dir.glob(File.join(YARD::ROOT, 'yard', 'core_ext', '*.rb')).each do |file|
  require file
end

# Backport RubyGems SourceIndex and other classes
require File.join(YARD::ROOT, 'yard', 'rubygems', 'backports')

['autoload', 'globals'].each do |file|
  require File.join(YARD::ROOT, 'yard', file)
end

# Load YARD configuration options (and plugins)
YARD::Config.load

Version data entries

14 entries across 11 versions & 3 rubygems

Version Path
challah-rolls-0.2.0 vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-0.8.3 vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-0.8.1 vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-rolls-0.1.0 vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-0.8.0.pre vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-0.7.1 vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-0.7.0 vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-0.7.0.pre2 vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-0.7.0.pre vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
challah-0.6.2 vendor/bundle/gems/yard-0.8.2.1/lib/yard.rb
yard-0.8.2.1 lib/yard.rb