4 5 6 7 8 9
# File 'lib/lens_protocol/oma/parser.rb', line 4 def parse oma_str, types: {} types = TYPES.merge(types) normalize_line_endings(oma_str) .split("\n") .reduce(Message.new) { |message, line| parse_line line, message, types } end