lib/fix/protocol/repeating_message_part.rb
#
# Parses an arbitrary number of nodes according to the found counter tag
#
Parses an arbitrary number of nodes according to the found counter tag
Parses an arbitrary number of nodes according to the found counter tag
def parse(str)
        if str.match(/^#{counter_tag}\=([^\x01]+)\x01/)
          len = $1.to_i 
          @nodes = []
          len.times { @nodes << element_klass.new }
          super(str.gsub(/^#{counter_tag}\=[^\x01]+\x01/, ''))
        end
      end
def parse ( str ) if str . match ( / ^ #{ counter_tag } \= ([^ \x01 ]+) \x01 / ) len = $1 . to_i @nodes = [ ] len . times { @nodes << element_klass . new } super ( str . gsub ( / ^ #{ counter_tag } \= [^ \x01 ]+ \x01 / , '' ) ) end end
Parses an arbitrary number of nodes according to the found counter tag
Parses an arbitrary number of nodes according to the found counter tag
str
<not_specific>