Method: Multimethod::Parameter#all_types
- Defined in:
- lib/multimethod/parameter.rb
#all_types(arg_type) ⇒ Object
Returns a list of all parent Modules of an argument type, including itself, in most-specialized to least-specialized order.
207 208 209 |
# File 'lib/multimethod/parameter.rb', line 207 def all_types(arg_type) arg_type.ancestors end |