Class: Method
Instance Method Summary collapse
- #argument_type ⇒ Array, Hash
-
#return_type ⇒ Object
A type behavior.
- #type_info ⇒ Hash
- #type_signature ⇒ TypeSignature
-
#typed? ⇒ Boolean
Whether the method is typed with rtype.
Instance Method Details
#argument_type ⇒ Array, Hash
266 267 268 |
# File 'lib/rtype/core_ext.rb', line 266 def argument_type ::Rtype.type_signatures[owner][name].argument_type end |
#return_type ⇒ Object
Returns A type behavior.
271 272 273 |
# File 'lib/rtype/core_ext.rb', line 271 def return_type ::Rtype.type_signatures[owner][name].return_type end |
#type_info ⇒ Hash
261 262 263 |
# File 'lib/rtype/core_ext.rb', line 261 def type_info ::Rtype.type_signatures[owner][name].info end |
#type_signature ⇒ TypeSignature
255 256 257 |
# File 'lib/rtype/core_ext.rb', line 255 def type_signature ::Rtype.type_signatures[owner][name] end |
#typed? ⇒ Boolean
Returns Whether the method is typed with rtype.
250 251 252 |
# File 'lib/rtype/core_ext.rb', line 250 def typed? !!::Rtype.type_signatures[owner][name] end |