Class: Tapioca::RBI::TStruct

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

Overview

Sorbet’s T::Struct

Instance Attribute Summary

Attributes inherited from Class

#name, #superclass_name

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) ⇒ TStruct

Returns a new instance of TStruct.



310
311
312
# File 'lib/tapioca/rbi/model.rb', line 310

def initialize(name)
  super(name, superclass_name: "::T::Struct")
end