Method: Unitsml::Parser#post_extras

Defined in:
lib/unitsml/parser.rb

#post_extrasObject



57
58
59
60
61
62
63
64
# File 'lib/unitsml/parser.rb', line 57

def post_extras
  return nil unless @regexp.match?(text)

  @extras_hash = {}
  texts_array = text&.split(",")&.map(&:strip)
  @text = texts_array&.shift
  texts_array&.map { |text| parse_extras(text) }
end