Class: Moult::MethodDef

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



14
15
16
# File 'lib/moult/parser.rb', line 14

def name
  @name
end

#nodeObject

Returns the value of attribute node

Returns:

  • (Object)

    the current value of node



14
15
16
# File 'lib/moult/parser.rb', line 14

def node
  @node
end

#spanObject

Returns the value of attribute span

Returns:

  • (Object)

    the current value of span



14
15
16
# File 'lib/moult/parser.rb', line 14

def span
  @span
end