Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Plantuml < SimpleDelegator
- end
- module IRuby
- module Display
- module Registry
- type { Plantuml }
- format 'image/svg+xml' do |obj|
- Tempfile.open('uml') do |uml|
- uml.write(obj)
- uml.flush
- Tempfile.open('svg') do |svg|
- `plantuml -p -tsvg < #{uml.path} > #{svg.path}`
- svg.read
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement