Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class Plantuml < SimpleDelegator
  2. end
  3.  
  4. module IRuby
  5. module Display
  6. module Registry
  7. type { Plantuml }
  8. format 'image/svg+xml' do |obj|
  9. Tempfile.open('uml') do |uml|
  10. uml.write(obj)
  11. uml.flush
  12. Tempfile.open('svg') do |svg|
  13. `plantuml -p -tsvg < #{uml.path} > #{svg.path}`
  14. svg.read
  15. end
  16. end
  17. end
  18. end
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement