Class: Glaemscribe::API::OutspacePostProcessorOperator

Inherits:
PostProcessorOperator show all
Defined in:
lib/api/post_processor/outspace.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

Constructor Details

#initialize(mode, glaeml_element) ⇒ OutspacePostProcessorOperator

Returns a new instance of OutspacePostProcessorOperator.



31
32
33
34
# File 'lib/api/post_processor/outspace.rb', line 31

def initialize(mode, glaeml_element)
  super(mode, glaeml_element)
  @out_space = @mode.post_processor.out_space  = glaeml_element.args[0].split.reject{|token| token.empty? }   
end

Instance Method Details

#apply(tokens, charset) ⇒ Object



36
37
38
39
# File 'lib/api/post_processor/outspace.rb', line 36

def apply(tokens, charset)
  @mode.post_processor.out_space = @out_space
  tokens
end