Class: FindMethodFromEvent::FindMethod
- Inherits:
-
Object
- Object
- FindMethodFromEvent::FindMethod
- Includes:
- Callable
- Defined in:
- app/services/find_method_from_event.rb
Instance Method Summary collapse
Methods included from Callable
Instance Method Details
#call ⇒ Object
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 |