Class: Method

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

Instance Method Summary collapse

Instance Method Details

#argument_typeObject



54
55
56
# File 'lib/rtype/core_ext.rb', line 54

def argument_type
	::Rtype.type_signatures[owner][name].argument_type
end

#return_typeObject



58
59
60
# File 'lib/rtype/core_ext.rb', line 58

def return_type
	::Rtype.type_signatures[owner][name].return_type
end

#type_infoObject



50
51
52
# File 'lib/rtype/core_ext.rb', line 50

def type_info
	::Rtype.type_signatures[owner][name].info
end

#type_signatureObject



46
47
48
# File 'lib/rtype/core_ext.rb', line 46

def type_signature
	::Rtype.type_signatures[owner][name]
end

#typed?Boolean

Returns:



42
43
44
# File 'lib/rtype/core_ext.rb', line 42

def typed?
	!!::Rtype.type_signatures[owner][name]
end