Method: Array#to_postscript
- Defined in:
- lib/pson.rb
#to_postscript ⇒ Object
Convert this array into a PostScript array expression.
77 78 79 80 81 82 83 |
# File 'lib/pson.rb', line 77 def to_postscript result = "[" each do |item| result << " " << item.to_postscript end return result + " ]" end |