Class: PDoc::Models::InstanceProperty

Inherits:
Entity
  • Object
show all
Defined in:
lib/pdoc/models/instance_property.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 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



4
5
6
# File 'lib/pdoc/models/instance_property.rb', line 4

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