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:



165
166
167
# File 'lib/sxp/extensions.rb', line 165

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