Module: Leftovers::Processors::Eval

Defined in:
lib/leftovers/processors/eval.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/eval.rb', line 6

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

  acc.collect_subfile(str, current_node.loc.expression)
end