Class: YARD::Handlers::Ruby::ActiveRecord::Scopes::ScopeHandler

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

Instance Method Summary collapse

Instance Method Details

#processObject



6
7
8
9
10
11
12
# File 'lib/yard-activerecord/scopes/scope_handler.rb', line 6

def process
  object = register 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,"ActiveRecord::Scoping", nil,
    'http://api.rubyonrails.org/classes/ActiveRecord/Scoping/Named/ClassMethods.html')
end