Class: RBI::Private
- Inherits:
-
Visibility
- Object
- Node
- NodeWithComments
- Visibility
- RBI::Private
- Extended by:
- T::Sig
- 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: [], &block) ⇒ Private
constructor
A new instance of Private.
Methods inherited from Visibility
#==, #private?, #protected?, #public?
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) ⇒ Private
Returns a new instance of Private.
996 997 998 999 |
# File 'lib/rbi/model.rb', line 996 def initialize(loc: nil, comments: [], &block) super(:private, loc: loc, comments: comments) block&.call(self) end |