Class: RBI::Private
- Inherits:
-
Visibility
- Object
- Node
- NodeWithComments
- Visibility
- RBI::Private
- Defined in:
- lib/rbi/model.rb
Instance Attribute Summary
Attributes inherited from Visibility
Attributes inherited from NodeWithComments
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(loc: nil, comments: nil, &block) ⇒ Private
constructor
A new instance of Private.
Methods inherited from Visibility
#==, #private?, #protected?, #public?
Methods inherited from NodeWithComments
#annotations, #comments?, #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: nil, &block) ⇒ Private
Returns a new instance of Private.
939 940 941 942 |
# File 'lib/rbi/model.rb', line 939 def initialize(loc: nil, comments: nil, &block) super(:private, loc: loc, comments: comments) block&.call(self) end |