Class: Tins::MethodDescription::Parameters::GenericParameter

Inherits:
Parameter
  • Object
show all
Defined in:
lib/tins/method_description.rb

Overview

Represents a generic parameter type not covered by other classes.

Instance Attribute Summary

Attributes inherited from Parameter

#name, #type

Instance Method Summary collapse

Methods inherited from Parameter

#==, #inspect

Instance Method Details

#to_sString

Converts the parameter to its string form.

Returns:

  • (String)

    Formatted as “name:type”



103
104
105
# File 'lib/tins/method_description.rb', line 103

def to_s
  [ name, type ] * ?:
end