Class: UpdateCode::FindMethod

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

Instance Method Summary collapse

Methods included from Callable

#initialize

Instance Method Details

#callObject



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