Class: Rtype::TypeSignature

Inherits:
Object show all
Defined in:
lib/rtype/type_signature.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argument_typeObject

Returns the value of attribute argument_type.



3
4
5
# File 'lib/rtype/type_signature.rb', line 3

def argument_type
  @argument_type
end

#return_typeObject

Returns the value of attribute return_type.



3
4
5
# File 'lib/rtype/type_signature.rb', line 3

def return_type
  @return_type
end

Instance Method Details

#infoHash

Returns A type signature.

Returns:

  • (Hash)

    A type signature



6
7
8
# File 'lib/rtype/type_signature.rb', line 6

def info
	{argument_type => return_type}
end