Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/pson.rb
Instance Method Summary collapse
-
#to_postscript ⇒ Object
Convert this array into a PostScript array expression.
Instance Method Details
#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 |