Method: Nyaplot::Plot3D#export_html
- Defined in:
- lib/nyaplot3d/plot3d.rb
#export_html(path = nil) ⇒ Object
export html file
55 56 57 58 59 |
# File 'lib/nyaplot3d/plot3d.rb', line 55 def export_html(path=nil) require 'securerandom' path = "./plot-" + SecureRandom.uuid().to_s + ".html" if path.nil? Frame.new.tap {|f| f.add(self) }.export_html(path) end |