Class: PDoc::Models::InstanceMethod
- Includes:
- Callable
- Defined in:
- lib/pdoc/models/instance_method.rb
Instance Attribute Summary collapse
-
#functionalized_self ⇒ Object
Returns the value of attribute functionalized_self.
Attributes inherited from Entity
Attributes inherited from Base
#description, #file, #id, #line_number, #parent, #type
Instance Method Summary collapse
Methods included from Callable
Methods inherited from Entity
#<=>, #alias?, #aliases, #aliases?, #methodized?, #signature, #signatures, #signatures?, #src_code_href
Methods inherited from Base
#ancestor_of?, #deprecated?, #descendant_of?, #doc_href, #full_name, #initialize, #inspect, instantiate, #name, #normalized_name, #register_on, #short_description, #to_json, #url
Constructor Details
This class inherits a constructor from PDoc::Models::Base
Instance Attribute Details
#functionalized_self ⇒ Object
Returns the value of attribute functionalized_self.
5 6 7 |
# File 'lib/pdoc/models/instance_method.rb', line 5 def functionalized_self @functionalized_self end |
Instance Method Details
#attach_to_parent(parent) ⇒ Object
6 7 8 |
# File 'lib/pdoc/models/instance_method.rb', line 6 def attach_to_parent(parent) parent.instance_methods << self end |
#to_hash ⇒ Object
10 11 12 13 14 15 |
# File 'lib/pdoc/models/instance_method.rb', line 10 def to_hash f = functionalized_self super.merge({ :functionalized_self => f ? f.id : nil }) end |