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
#==, #accept_printer, #private?, #protected?, #public?
Methods inherited from NodeWithComments
#annotations, #merge_with, #oneline?
Methods inherited from Node
#accept_printer, #compatible_with?, #detach, #group_kind, #merge_with, #oneline?, #parent_conflict_tree, #parent_scope, #print, #print_blank_line_before, #replace, #string
Constructor Details
#initialize(loc: nil, comments: [], &block) ⇒ Private
Returns a new instance of Private.
911 912 913 914 |
# File 'lib/rbi/model.rb', line 911 def initialize(loc: nil, comments: [], &block) super(:private, loc: loc, comments: comments) block&.call(self) end |