Class: RBI::Public
- Inherits:
-
Visibility
- Object
- Node
- NodeWithComments
- Visibility
- RBI::Public
- 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) ⇒ Public
constructor
A new instance of Public.
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) ⇒ Public
Returns a new instance of Public.
879 880 881 882 |
# File 'lib/rbi/model.rb', line 879 def initialize(loc: nil, comments: [], &block) super(:public, loc: loc, comments: comments) block&.call(self) end |