Class: Solargraph::TypeChecker::ParamDef
- Inherits:
-
Object
- Object
- Solargraph::TypeChecker::ParamDef
- Defined in:
- lib/solargraph/type_checker/param_def.rb
Overview
Data about a method parameter definition. This is the information from the args list in the def call, not the ‘@param` tags.
Instance Attribute Summary collapse
- #name ⇒ String readonly
- #type ⇒ Symbol readonly
Class Method Summary collapse
-
.from(pin) ⇒ Array<ParamDef>
Get an array of ParamDefs from a method pin.
Instance Method Summary collapse
-
#initialize(name, type) ⇒ ParamDef
constructor
A new instance of ParamDef.
Constructor Details
#initialize(name, type) ⇒ ParamDef
Returns a new instance of ParamDef.
15 16 17 18 |
# File 'lib/solargraph/type_checker/param_def.rb', line 15 def initialize name, type @name = name @type = type end |
Instance Attribute Details
#name ⇒ String (readonly)
10 11 12 |
# File 'lib/solargraph/type_checker/param_def.rb', line 10 def name @name end |
#type ⇒ Symbol (readonly)
13 14 15 |
# File 'lib/solargraph/type_checker/param_def.rb', line 13 def type @type end |