Class: GenerateBuffer::FindMethod

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

Instance Method Summary collapse

Methods included from Callable

#initialize

Instance Method Details

#callObject



90
91
92
93
94
95
# File 'app/services/generate_buffer.rb', line 90

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