public
Description: PLEASE GO TO http://yard.soen.ca FOR IMPORTANT NEWS ABOUT YARD / THE AUTHOR!!!
Homepage: http://yard.soen.ca / IRC: #yard on irc.freenode.net
Clone URL: git://github.com/lsegal/yard.git
Search Repo:
Click here to lend your support to: yard and make a donation at www.pledgie.com !
yard / lib / yard.rb
100644 45 lines (39 sloc) 0.858 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
YARD_ROOT = File.join(File.dirname(__FILE__), 'yard')
YARD_TEMPLATE_ROOT = File.join(File.dirname(__FILE__), '..', 'templates')
 
$LOAD_PATH.unshift(YARD_ROOT)
 
['yard_logger'].each do |file|
  require File.join(File.dirname(__FILE__), 'yard', file)
end
 
module YARD
  VERSION = "0.2.1"
  
  module CodeObjects; end
  module Generators; end
  module Parser
    module Lexer; end
    module Ruby; end
  end
  module Handlers; end
  module Tags
    module Library; end
  end
end
 
YARD.logger.level = YARD.level
 
%w[
symbol_hash
tags/*
code_objects/base
code_objects/namespace_object
code_objects/*
parser/**/*
handlers/base
handlers/*
registry
tag_library
].each do |file|
  file = File.join(File.dirname(__FILE__), 'yard', file + ".rb")
  Dir[file].each do |f|
    if require(f)
      YARD.logger.debug "Loading #{f}..."
    end
  end
end