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
258 259 260 |
# File 'lib/rtype/core_ext.rb', line 258 def argument_type ::Rtype.type_signatures[owner][name].argument_type end |
#return_type ⇒ Object
Returns A type behavior.
263 264 265 |
# File 'lib/rtype/core_ext.rb', line 263 def return_type ::Rtype.type_signatures[owner][name].return_type end |
#type_info ⇒ Hash
253 254 255 |
# File 'lib/rtype/core_ext.rb', line 253 def type_info ::Rtype.type_signatures[owner][name].info end |
#type_signature ⇒ TypeSignature
247 248 249 |
# File 'lib/rtype/core_ext.rb', line 247 def type_signature ::Rtype.type_signatures[owner][name] end |
#typed? ⇒ Boolean
Returns Whether the method is typed with rtype.
242 243 244 |
# File 'lib/rtype/core_ext.rb', line 242 def typed? !!::Rtype.type_signatures[owner][name] end |