Class: Glaemscribe::API::RxSubstitutePreProcessorOperator
- Inherits:
-
PreProcessorOperator
- Object
- PrePostProcessorOperator
- PreProcessorOperator
- Glaemscribe::API::RxSubstitutePreProcessorOperator
- Defined in:
- lib/api/pre_processor/rxsubstitute.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
29 30 31 32 33 |
# File 'lib/api/pre_processor/rxsubstitute.rb', line 29 def apply(l) what = /#{finalized_glaeml_element.args[0]}/ with = finalized_glaeml_element.args[1] l.gsub(what, with) end |