Class: UpdateCode::FindMethod
- Inherits:
-
Object
- Object
- UpdateCode::FindMethod
- Includes:
- Callable
- Defined in:
- app/services/update_code.rb
Instance Method Summary collapse
Methods included from Callable
Instance Method Details
#call ⇒ Object
61 62 63 64 65 66 |
# File 'app/services/update_code.rb', line 61 def call source.ast .each_node .map { |n| n if method_types.include?(n.type) && n.method_name == name } .compact end |