Class: RBI::NoKwParam
- Inherits:
-
Param
- Object
- Node
- NodeWithComments
- Param
- RBI::NoKwParam
- Defined in:
- lib/rbi/model.rb
Instance Attribute Summary
Attributes inherited from NodeWithComments
Attributes inherited from Node
Instance Method Summary collapse
- #==(other) ⇒ Object
- #anonymous? ⇒ Boolean
-
#initialize(loc: nil, comments: nil, &block) ⇒ NoKwParam
constructor
A new instance of NoKwParam.
- #to_s ⇒ Object
Methods inherited from Param
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) ⇒ NoKwParam
Returns a new instance of NoKwParam.
820 821 822 823 |
# File 'lib/rbi/model.rb', line 820 def initialize(loc: nil, comments: nil, &block) super(loc: loc, comments: comments) block&.call(self) end |
Instance Method Details
#==(other) ⇒ Object
838 839 840 |
# File 'lib/rbi/model.rb', line 838 def ==(other) NoKwParam === other end |
#anonymous? ⇒ Boolean
833 834 835 |
# File 'lib/rbi/model.rb', line 833 def anonymous? false end |
#to_s ⇒ Object
827 828 829 |
# File 'lib/rbi/model.rb', line 827 def to_s "**nil" end |