Class: RBI::VisibilityGroup
- Inherits:
-
Tree
- Object
- Node
- NodeWithComments
- Tree
- RBI::VisibilityGroup
- Extended by:
- T::Sig
- Defined in:
- lib/rbi/rewriters/nest_non_public_members.rb
Instance Attribute Summary collapse
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Attributes inherited from Tree
Attributes inherited from NodeWithComments
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(visibility) ⇒ VisibilityGroup
constructor
A new instance of VisibilityGroup.
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(visibility) ⇒ VisibilityGroup
Returns a new instance of VisibilityGroup.
59 60 61 62 |
# File 'lib/rbi/rewriters/nest_non_public_members.rb', line 59 def initialize(visibility) super() @visibility = visibility end |
Instance Attribute Details
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility.
56 57 58 |
# File 'lib/rbi/rewriters/nest_non_public_members.rb', line 56 def visibility @visibility end |