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
#==, #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) ⇒ Public
Returns a new instance of Public.
964 965 966 967 |
# File 'lib/rbi/model.rb', line 964 def initialize(loc: nil, comments: [], &block) super(:public, loc: loc, comments: comments) block&.call(self) end |