Class: PDoc::Models::Utility

Inherits:
Entity show all
Includes:
Callable
Defined in:
lib/pdoc/models/utility.rb

Instance Attribute Summary

Attributes inherited from Entity

#alias

Attributes inherited from Base

#description, #file, #id, #line_number, #parent, #type

Instance Method Summary collapse

Methods included from Callable

#arguments, #arguments?, #to_hash

Methods inherited from Entity

#<=>, #alias?, #aliases, #aliases?, #methodized?, #signature, #signatures, #signatures?, #src_code_href, #to_hash

Methods inherited from Base

#ancestor_of?, #deprecated?, #descendant_of?, #doc_href, #full_name, #initialize, #inspect, instantiate, #name, #normalized_name, #register_on, #short_description, #to_hash, #to_json, #url

Constructor Details

This class inherits a constructor from PDoc::Models::Base

Instance Method Details

#attach_to_parent(parent) ⇒ Object



6
7
8
# File 'lib/pdoc/models/utility.rb', line 6

def attach_to_parent(parent)
  parent.utilities << self
end