Class: Method

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

Instance Method Summary collapse

Instance Method Details

#arg_typesArray<Class, Symbol>



35
36
37
# File 'lib/rubype.rb', line 35

def arg_types
  type_info.first.first if type_info
end

#return_typeClass, Symbol



40
41
42
# File 'lib/rubype.rb', line 40

def return_type
  type_info.first.last if type_info
end

#type_infoHash



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