diff options
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb index 1992896..c76e21a 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -31,7 +31,14 @@ module OpenTox end def add_metadata(metadata) - metadata.each { |k,v| @metadata[k] = v } + metadata.each do |k,v| + if v.is_a? Array + @metadata[k] = [] unless @metadata[k] + @metadata[k] << v + else + @metadata[k] = v + end + end end # Get OWL-DL representation in RDF/XML format |