Class: YARD::Handlers::Ruby::ActiveRecord2::Associations::Base
- Inherits:
-
MethodHandler
- Object
- MethodHandler
- YARD::Handlers::Ruby::ActiveRecord2::Associations::Base
show all
- Defined in:
- lib/yard-activerecord2/associations/base.rb
Instance Method Summary
collapse
Instance Method Details
#process ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/yard-activerecord2/associations/base.rb', line 8
def process
group_name = "Active Record Associations"
namespace.groups << group_name unless namespace.groups.include? group_name
object = YARD::CodeObjects::MethodObject.new(namespace, method_name)
object.group = group_name
object.docstring = return_description
object.docstring.add_tag get_tag(:return, '', class_name)
object.docstring.add_tag get_tag(:see, 'http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html')
object.dynamic = true
register object
end
|