Class: RBI::TEnumBlock
Instance Attribute Summary
Attributes inherited from Tree
Attributes inherited from NodeWithComments
Attributes inherited from Node
Instance Method Summary collapse
- #fully_qualified_name ⇒ Object
- #index_ids ⇒ Object
-
#initialize(loc: nil, comments: [], &block) ⇒ TEnumBlock
constructor
A new instance of TEnumBlock.
- #to_s ⇒ Object
Methods inherited from Scope
Methods inherited from Tree
#<<, #add_sig_templates!, #annotate!, #deannotate!, #empty?, #filter_versions!, #flatten_singleton_methods!, #flatten_visibilities!, #group_nodes!, #index, #merge, #nest_non_public_members!, #nest_singleton_methods!, #nest_top_level_members!, #replace_attributes_with_methods!, #sort_nodes!
Methods inherited from NodeWithComments
#annotations, #merge_with, #version_requirements
Methods inherited from Node
#compatible_with?, #detach, #merge_with, #parent_conflict_tree, #parent_scope, #print, #rbs_print, #rbs_string, #replace, #satisfies_version?, #string
Constructor Details
#initialize(loc: nil, comments: [], &block) ⇒ TEnumBlock
Returns a new instance of TEnumBlock.
1356 1357 1358 1359 |
# File 'lib/rbi/model.rb', line 1356 def initialize(loc: nil, comments: [], &block) super(loc: loc, comments: comments) {} block&.call(self) end |
Instance Method Details
#fully_qualified_name ⇒ Object
1362 1363 1364 |
# File 'lib/rbi/model.rb', line 1362 def fully_qualified_name "#{parent_scope&.fully_qualified_name}.enums" end |
#index_ids ⇒ Object
223 224 225 |
# File 'lib/rbi/index.rb', line 223 def index_ids [to_s] end |
#to_s ⇒ Object
1367 1368 1369 |
# File 'lib/rbi/model.rb', line 1367 def to_s fully_qualified_name end |