Class: Moult::MethodDef
- Inherits:
-
Struct
- Object
- Struct
- Moult::MethodDef
- Defined in:
- lib/moult/parser.rb
Overview
A single method definition discovered by parsing. Internal to the analysis pipeline (not the serialized Report::Method); it retains the Prism node so the ABC metric can walk the method's subtree.
name is the lexical fully-qualified name (Class#method / Class.method),
derived from the written module/class nesting only. Constant resolution
(Zeitwerk, includes, reopened constants) is deliberately out of Phase 1.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#node ⇒ Object
Returns the value of attribute node.
-
#span ⇒ Object
Returns the value of attribute span.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
14 15 16 |
# File 'lib/moult/parser.rb', line 14 def name @name end |
#node ⇒ Object
Returns the value of attribute node
14 15 16 |
# File 'lib/moult/parser.rb', line 14 def node @node end |
#span ⇒ Object
Returns the value of attribute span
14 15 16 |
# File 'lib/moult/parser.rb', line 14 def span @span end |