class Rubydown::RbMarkPlot
Public Instance Methods
_plot_splot(*args)
click to toggle source
Calls superclass method
# File lib/rubydown.rb, line 56 def _plot_splot(*args) @tempfile = Tempfile.open(['plot', '.png']) set terminal: 'png' set output: @tempfile.path super(*args) end
plot(*args)
click to toggle source
Calls superclass method
# File lib/rubydown.rb, line 46 def plot(*args) super(*args) self end
splot(*args)
click to toggle source
Calls superclass method
# File lib/rubydown.rb, line 51 def splot(*args) super(*args) self end
to_html()
click to toggle source
# File lib/rubydown.rb, line 63 def to_html img_b64 = Base64.encode64(File.binread(@tempfile)) <<-HTML <img src='data:image/png;base64,#{img_b64}' /> HTML end