Class: Array

Inherits:
Object show all
Defined in:
lib/sxp/extensions.rb

Overview

Extensions for Ruby’s ‘Array` class.

Instance Method Summary collapse

Instance Method Details

#to_sxpString

Returns the SXP representation of this object.

Returns:



149
150
151
# File 'lib/sxp/extensions.rb', line 149

def to_sxp()
  '(' << map { |x| x.to_sxp(**options) }.join(' ') << ')'
end