Class: Glaemscribe::API::SubstitutePreProcessorOperator

Inherits:
PreProcessorOperator show all
Defined in:
lib/api/pre_processor/substitute.rb

Instance Attribute Summary

Attributes inherited from PrePostProcessorOperator

#finalized_glaeml_element, #glaeml_element

Instance Method Summary collapse

Methods inherited from PrePostProcessorOperator

#eval_arg, #finalize, #finalize_glaeml_element, #initialize

Constructor Details

This class inherits a constructor from Glaemscribe::API::PrePostProcessorOperator

Instance Method Details

#apply(l) ⇒ Object



28
29
30
31
32
# File 'lib/api/pre_processor/substitute.rb', line 28

def apply(l)
  what = finalized_glaeml_element.args[0]
  with = finalized_glaeml_element.args[1]
  l.gsub(what, with)
end