Rename params -> plot_params

This commit is contained in:
kojix2 2020-12-14 15:02:32 +09:00
parent a5cdc94bb0
commit 5d1a4fdf3c
3 changed files with 4 additions and 5 deletions

View File

@ -15,7 +15,6 @@ module YouPlot
def initialize(argv = ARGV)
@argv = argv
@params = Params.new
@parser = Parser.new
@backend = YouPlot::Backends::UnicodePlotBackend
end
@ -23,7 +22,7 @@ module YouPlot
def run
parser.parse_options(@argv)
command = parser.command
params = parser.params
@params = parser.params
delimiter = parser.delimiter
transpose = parser.transpose
headers = parser.headers

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'optparse'
require_relative 'params'
require_relative 'plot_params'
module YouPlot
class Command
@ -12,7 +12,7 @@ module YouPlot
def initialize
@command = nil
@params = Params.new
@params = PlotParams.new
@delimiter = "\t"
@transpose = false

View File

@ -7,7 +7,7 @@ module YouPlot
# * Here, I use Struct for 2 safety reason.
# * The keys are static in Struct.
# * Struct does not conflict with keyword arguments. Hash dose.
Params = Struct.new(
PlotParams = Struct.new(
# Sort me!
:title,
:width,