Class: Vector
Overview
Extensions for Ruby’s ‘Vector` class.
Instance Method Summary collapse
-
#to_sxp(**options) ⇒ String
Returns the SXP representation of this object.
Instance Method Details
#to_sxp(**options) ⇒ String
Returns the SXP representation of this object.
177 178 179 |
# File 'lib/sxp/extensions.rb', line 177 def to_sxp(**) '#(' << to_a.map { |x| x.to_sxp(**) }.join(' ') << ')' end |