Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.