Class: RBI::Param
- Inherits:
-
NodeWithComments
- Object
- Node
- NodeWithComments
- RBI::Param
- Extended by:
- T::Helpers
- Defined in:
- lib/rbi/model.rb
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
517 518 519 |
# File 'lib/rbi/model.rb', line 517 def name @name end |
Instance Method Details
#to_s ⇒ Object
: -> String
527 528 529 |
# File 'lib/rbi/model.rb', line 527 def to_s name end |