class Method
Public Instance Methods
argument_type()
click to toggle source
@return [Array, Hash]
# File lib/rtype/core_ext.rb, line 258 def argument_type ::Rtype.type_signatures[owner][name].argument_type end
return_type()
click to toggle source
@return A type behavior
# File lib/rtype/core_ext.rb, line 263 def return_type ::Rtype.type_signatures[owner][name].return_type end
type_info()
click to toggle source
@return [Hash] @see TypeSignature#info
# File lib/rtype/core_ext.rb, line 253 def type_info ::Rtype.type_signatures[owner][name].info end
type_signature()
click to toggle source
@return [TypeSignature]
# File lib/rtype/core_ext.rb, line 247 def type_signature ::Rtype.type_signatures[owner][name] end
typed?()
click to toggle source
@return [Boolean] Whether the method is typed with rtype
# File lib/rtype/core_ext.rb, line 242 def typed? !!::Rtype.type_signatures[owner][name] end