Class: YARD::Handlers::Ruby::ActiveRecord2::Scopes::ScopeHandler

Inherits:
MethodHandler
  • Object
show all
Defined in:
lib/yard-activerecord2/scopes/scope_handler.rb

Instance Method Summary collapse

Instance Method Details

#processObject



8
9
10
11
12
13
14
15
# File 'lib/yard-activerecord2/scopes/scope_handler.rb', line 8

def process
  object = YARD::CodeObjects::MethodObject.new(namespace, method_name, :class)
  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/NamedScope/ClassMethods.html')
  register object
end