Class: Glaemscribe::API::TranscriptionPreProcessor

Inherits:
TranscriptionPrePostProcessor show all
Defined in:
lib/api/transcription_pre_post_processor.rb

Instance Attribute Summary

Attributes inherited from TranscriptionPrePostProcessor

#operators, #root_code_block

Instance Method Summary collapse

Methods inherited from TranscriptionPrePostProcessor

#descend_if_tree, #finalize, #initialize

Constructor Details

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

Instance Method Details

#apply(l) ⇒ Object

Apply all preprocessor rules consecutively



111
112
113
114
115
116
117
# File 'lib/api/transcription_pre_post_processor.rb', line 111

def apply(l)
  ret = l
  @operators.each{ |operator|
    ret = operator.apply(ret)
  }
  ret
end