Class: RBI::SingletonClass
- Defined in:
- lib/rbi/model.rb
Instance Attribute Summary
Attributes inherited from Tree
Attributes inherited from NodeWithComments
Attributes inherited from Node
Instance Method Summary collapse
-
#fully_qualified_name ⇒ Object
: -> String.
-
#initialize(loc: nil, comments: [], &block) ⇒ SingletonClass
constructor
: (?loc: Loc?, ?comments: Array) ?{ (SingletonClass node) -> void } -> void.
Methods inherited from Scope
Methods included from Indexable
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!, #translate_rbs_sigs!
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) ⇒ SingletonClass
: (?loc: Loc?, ?comments: Array) ?{ (SingletonClass node) -> void } -> void
228 229 230 231 |
# File 'lib/rbi/model.rb', line 228 def initialize(loc: nil, comments: [], &block) super {} block&.call(self) end |
Instance Method Details
#fully_qualified_name ⇒ Object
: -> String
235 236 237 |
# File 'lib/rbi/model.rb', line 235 def fully_qualified_name "#{parent_scope&.fully_qualified_name}::<self>" end |