txt: ## find-method.md
  find\_method
  
  Combined from primary sources listed below.
  
  # [In role Metamodel::MROBasedMethodDispatch](#___top "go to top of document")[§](#(role_Metamodel::MROBasedMethodDispatch)_method_find_method "direct link")
  
  See primary documentation
  [in context](/type/Metamodel/MROBasedMethodDispatch#method_find_method)
  for **method find method**.
  
  ```raku
  method find_method($obj, $name, :$no_fallback, *%adverbs)
  ```
  
  Given a method name, it returns the method object of that name which is closest in the method resolution order (MRO). If no method can be found, it returns a VM-specific sentinel value (typically a low-level NULL value) that can be tested for with a test for [definedness](/routine/defined):
  
  ```raku
  for <uppercase  uc> {
      Str.^find_method: $^meth andthen .("foo").say
          orelse "method `$meth` not found".say
  }
  # OUTPUT:
  # method `uppercase` not found
  # FOO
  
  ```
  
  If `:no_fallback` is supplied, fallback methods are not considered.
  
  # [In Metamodel::DefiniteHOW](#___top "go to top of document")[§](#(Metamodel::DefiniteHOW)_method_find_method "direct link")
  
  See primary documentation
  [in context](/type/Metamodel/DefiniteHOW#method_find_method)
  for **method find method**.
  
  ```raku
  method find_method($definite_type, $name)
  ```
  
  Looks up a method on the base type of a definite type.
  