lib/inch/language/ruby/provider/yard/object/method_signature.rb in inch-0.5.4 vs lib/inch/language/ruby/provider/yard/object/method_signature.rb in inch-0.5.5

- old
+ new

@@ -82,21 +82,21 @@ # signature. # # @param name [String] parameter name # @return [String] def in_signature(name) - possible_names = [name, "*#{name}", "&#{name}"] + possible_names = [name, "*#{name}", "&#{name}", "#{name}:"] (all_signature_parameter_names & possible_names).first end # Removes block, splat symbols, dollar sign, # leading and trailing brackets from a given +name+ # (sometimes used to indicate optional parameters in overload # signatures). # @param name [String] parameter name # @return [String] def normalize_parameter_name(name) - name.gsub(/[\&\*\$\[\]]/, '') + name.gsub(/[\&\*\$\[\]\:]/, '') end def parameter_tag(param_name) parameter_tags.find do |tag| tag.name == param_name