Class: Array

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

Overview

Extensions for Ruby's Array class.

Instance Method Summary collapse

Instance Method Details

#to_sxpString

Returns the SXP representation of this object.


124
125
126
# File 'lib/sxp/writer.rb', line 124

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