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



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

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?



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

def superclass_name
  @superclass_name
end