class EDI::E::StreamingSkimmer
Just an idea - not sure it’s worth an implementation…
Class StreamingSkimmer
¶ ↑
The StreamingSkimmer
works as a simplified StreamingBuilder
. It only skims through the service segements of an interchange and builds an interchange skeleton from them containing just the interchange, group, and message level, but not the regular messages. Thus, all messages are empty and not fit for validation (use class StreamingBuilder
to build a complete interchange).
StreamingSkimmer
lacks an implementation of callback method on_segment()
. The interchange skeletons it produces are thus quicky built and have a small memory footprint. Customize the class by overwriting on_segment()
.
Public Instance Methods
on_segment( s, tag )
click to toggle source
# File lib/edi4r/edifact.rb, line 1924 def on_segment( s, tag ) # Deliberately left empty end