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

#location, #owner, #symbol

Instance Method Summary collapse

Methods inherited from SymbolDef

#full_name, #name

Constructor Details

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

Returns a new instance of Class.



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

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

  @superclass_name = superclass_name
end

Instance Attribute Details

#superclass_nameObject

Returns the value of attribute superclass_name.



119
120
121
# File 'lib/spoom/model/model.rb', line 119

def superclass_name
  @superclass_name
end