Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/pson.rb

Instance Method Summary collapse

Instance Method Details

#to_postscriptObject

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