Module: Leftovers::Processors::AddCall

Defined in:
lib/leftovers/processors/add_call.rb

Class Method Summary collapse

Class Method Details

.process(str, _current_node, _matched_node, acc) ⇒ Object



6
7
8
9
10
11
# File 'lib/leftovers/processors/add_call.rb', line 6

def self.process(str, _current_node, _matched_node, acc)
  return unless str
  return if str.empty?

  acc.calls << str.to_sym
end