YouPlot/lib/uplot/command/params.rb
2020-09-19 00:08:09 +09:00

33 lines
449 B
Ruby

# frozen_string_literal: true
module Uplot
class Command
Params = Struct.new(
# Sort me!
:title,
:width,
:height,
:border,
:margin,
:padding,
:color,
:xlabel,
:ylabel,
:labels,
:symbol,
:xscale,
:nbins,
:closed,
:canvas,
:xlim,
:ylim,
:grid,
:name
) do
def to_hc
to_h.compact
end
end
end
end