Class: Tapioca::RBI::Class

Inherits:
Scope show all
Extended by:
T::Sig
Defined in:
lib/tapioca/rbi/model.rb

Direct Known Subclasses

TEnum, TStruct

Instance Attribute Summary collapse

Attributes inherited from Tree

#nodes

Attributes inherited from Node

#parent_tree

Instance Method Summary collapse

Methods inherited from Scope

#accept_printer

Methods inherited from Tree

#<<, #accept_printer, #empty?, #group_nodes!, #nest_non_public_methods!, #nest_singleton_methods!, #oneline?, #sort_nodes!

Methods inherited from Node

#accept_printer, #detach, #group_kind, #oneline?, #print, #string

Constructor Details

#initialize(name, superclass_name: nil) ⇒ Class

Returns a new instance of Class.



84
85
86
87
88
# File 'lib/tapioca/rbi/model.rb', line 84

def initialize(name, superclass_name: nil)
  super()
  @name = name
  @superclass_name = superclass_name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



78
79
80
# File 'lib/tapioca/rbi/model.rb', line 78

def name
  @name
end

#superclass_nameObject

Returns the value of attribute superclass_name.



81
82
83
# File 'lib/tapioca/rbi/model.rb', line 81

def superclass_name
  @superclass_name
end