3 4 5
# File 'lib/pgvector.rb', line 3 def self.encode(data) "[#{data.to_a.map(&:to_f).join(",")}]" end