gdef

Finds the definition of a Ruby, Crystal, or Elixir function

gdef helps you grep for the “definition” of a method in one of the aforementioned languages.

Can handle the fact that sometimes a ruby method is defined as def foo and sometimes it’s def self.foo Either way it’ll find it.

Usage

USAGE: gdef <method_name> [path]
   method_name: the name of the method you are looking for.
     It can also be just the initial portion of the method name.
   path: the path to the dir you want to search under.
     path defaults to the current directory.

Metadata:

Tags:

  • crystal
  • elixir
  • ruby
  • search