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

- (String) to_sxp

Returns the SXP representation of this object.

Returns:



108
109
110
# File 'lib/sxp/writer.rb', line 108

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