Class: RBI::Param Abstract
- Inherits:
-
NodeWithComments
- Object
- Node
- NodeWithComments
- RBI::Param
- Defined in:
- lib/rbi/model.rb
Overview
This class is abstract.
Direct Known Subclasses
BlockParam, KwOptParam, KwParam, KwRestParam, OptParam, ReqParam, RestParam
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
: String.
Attributes inherited from NodeWithComments
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(name, loc: nil, comments: []) ⇒ Param
constructor
: (String name, ?loc: Loc?, ?comments: Array) -> void.
-
#to_s ⇒ Object
: -> String.
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
Instance Attribute Details
#name ⇒ Object (readonly)
: String
504 505 506 |
# File 'lib/rbi/model.rb', line 504 def name @name end |
Instance Method Details
#to_s ⇒ Object
: -> String
514 515 516 |
# File 'lib/rbi/model.rb', line 514 def to_s name end |