class Solargraph::TypeChecker::ParamDef
Data about a method parameter definition. This is the information from the args list in the def call, not the ‘@param` tags.
Attributes
@return [String]
@return [Symbol]
Public Class Methods
Source
# File lib/solargraph/type_checker/param_def.rb, line 27 def from pin result = [] pin.parameters.each do |par| result.push ParamDef.new(par.name, par.decl) end result end
Get an array of ParamDefs from a method pin.
@param pin [Solargraph::Pin::Method] @return [Array<ParamDef>]
Source
# File lib/solargraph/type_checker/param_def.rb, line 17 def initialize name, type @name = name @type = type end
@param name [String] @param type [Symbol] The type of parameter, such as :req, :opt, :rest, etc.