Class: Method
- Inherits:
-
Object
- Object
- Method
- Defined in:
- lib/rubype.rb
Instance Method Summary collapse
-
#arg_types ⇒ Array<Class, Symbol>
: [ArgInfo_1, ArgInfo_2, … ArgInfo_n].
-
#return_type ⇒ Class, Symbol
: RtnInfo.
-
#type_info ⇒ Hash
: { [ArgInfo_1, ArgInfo_2, … ArgInfo_n] => RtnInfo }.
Instance Method Details
#arg_types ⇒ Array<Class, Symbol>
Returns : [ArgInfo_1, ArgInfo_2, … ArgInfo_n].
35 36 37 |
# File 'lib/rubype.rb', line 35 def arg_types type_info.first.first if type_info end |
#return_type ⇒ Class, Symbol
Returns : RtnInfo.
40 41 42 |
# File 'lib/rubype.rb', line 40 def return_type type_info.first.last if type_info end |
#type_info ⇒ Hash
Returns : { [ArgInfo_1, ArgInfo_2, … ArgInfo_n] => RtnInfo }.
28 29 30 31 32 |
# File 'lib/rubype.rb', line 28 def type_info if methods_hash = Rubype.typed_method_info[owner] methods_hash[name] end end |