Class: FindMethodFromEvent::FindMethod

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

Instance Method Summary collapse

Methods included from Callable

#initialize

Instance Method Details

#callObject



39
40
41
42
43
44
# File 'app/services/find_method_from_event.rb', line 39

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