Class: Leftovers::Processors::Placeholder

Inherits:
Object
  • Object
show all
Defined in:
lib/leftovers/processors/placeholder.rb

Instance Method Summary collapse

Instance Method Details

#process(str, current_node, matched_node, acc) ⇒ Object



12
13
14
# File 'lib/leftovers/processors/placeholder.rb', line 12

def process(str, current_node, matched_node, acc)
  @processor.process(str, current_node, matched_node, acc)
end

#processor=(value) ⇒ Object



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

def processor=(value)
  @processor = value

  freeze
end