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

: (Symbol symbol, owner: Namespace?, location: Location, ?superclass_name: String?, ?comments: Array) -> void



137
138
139
140
141
# File 'lib/spoom/model/model.rb', line 137

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

: String?



134
135
136
# File 'lib/spoom/model/model.rb', line 134

def superclass_name
  @superclass_name
end