Class: Spoom::Model::Class

Inherits:
Namespace show all
Defined in:
lib/spoom/model/model.rb

Instance Attribute Summary collapse

Attributes inherited from Namespace

#children, #mixins

Attributes inherited from SymbolDef

#comments, #location, #owner, #symbol

Instance Method Summary collapse

Methods inherited from SymbolDef

#full_name, #name

Constructor Details

#initialize(symbol, owner:, location:, superclass_name: nil, comments: []) ⇒ Class

Returns a new instance of Class.

Signature:

  • (

  • Symbol symbol,

  • owner: Namespace?,

  • location: Location,

  • ?superclass_name: String?,

  • ?comments: Array[Comment]

  • ) -> void



139
140
141
142
143
# File 'lib/spoom/model/model.rb', line 139

def initialize(symbol, owner:, location:, superclass_name: nil, comments: [])
  super(symbol, owner: owner, location: location, comments: comments)

  @superclass_name = superclass_name
end

Instance Attribute Details

#superclass_nameObject

Signature:

  • String?



130
131
132
# File 'lib/spoom/model/model.rb', line 130

def superclass_name
  @superclass_name
end