Class: Vector

Inherits:
Object show all
Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/extensions.rb

Overview

Extensions for Ruby's Vector class.

Instance Method Summary collapse

Instance Method Details

#to_sxp(**options) ⇒ String

Returns the SXP representation of this object.

Returns:



177
178
179
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/extensions.rb', line 177

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