Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/pson.rb
Instance Method Summary collapse
-
#to_postscript ⇒ Object
Convert this hash into a PostScript dictionary expression.
Instance Method Details
#to_postscript ⇒ Object
Convert this hash into a PostScript dictionary expression.
90 91 92 93 94 95 96 97 |
# File 'lib/pson.rb', line 90 def to_postscript result = "<<" each_pair do |name, value| result << " " << name.to_postscript result << " " << value.to_postscript end return result + " >>" end |