Class: FindMethodInPath::FindMethod

Inherits:
Object
  • Object
show all
Includes:
Callable
Defined in:
app/services/find_method_in_path.rb

Instance Method Summary collapse

Methods included from Callable

#initialize

Instance Method Details

#callObject



40
41
42
43
44
45
46
47
# File 'app/services/find_method_in_path.rb', line 40

def call
  binding.pry

  source.ast
        .each_node
        .map { |n| n if n.type == type && n.method_name == name }
        .compact
end