1 lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../../lib'))
2 $LOAD_PATH.unshift(lib_dir)
4 require 'yard-google-code'
7 return if object.docstring.blank? && !object.has_tag?(:api)
8 sections :index, [:private, :deprecated, :abstract, :todo, :note, :returns_void, :text], T('tags')
12 return unless object.has_tag?(:api) && object.tag(:api).text == 'private'
17 return unless object.has_tag?(:abstract)
22 return unless object.has_tag?(:deprecated)
27 return unless object.has_tag?(:todo)
32 return unless object.has_tag?(:note)
37 return unless object.type == :method
38 return if object.name == :initialize && object.scope == :instance
39 return unless object.tags(:return).size == 1 && object.tag(:return).types == ['void']
45 unless object.tags(:overload).size == 1 && object.docstring.empty?
46 text = object.docstring
49 if text.strip.empty? && object.tags(:return).size == 1 && object.tag(:return).text
50 text = object.tag(:return).text.gsub(/\A([a-z])/) {|x| x.upcase }