Add new file params.rb

This commit is contained in:
kojix2 2020-09-15 18:58:25 +09:00
parent 50cb8d7463
commit 3b8846efbe
2 changed files with 30 additions and 27 deletions

View File

@ -5,33 +5,6 @@ module Uplot
Data = Struct.new(:headers, :series)
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
attr_accessor :params, :command
attr_reader :raw_inputs, :data, :fmt

View File

@ -0,0 +1,30 @@
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