From 9a7f066f3b69b5cdad2f9c36f86d8c8b1f6aa822 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Mon, 21 Dec 2020 16:09:37 +0900 Subject: [PATCH] Rename input to parse --- lib/youplot/command.rb | 2 +- lib/youplot/dsv.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/youplot/command.rb b/lib/youplot/command.rb index 17c105a..d6f1a24 100644 --- a/lib/youplot/command.rb +++ b/lib/youplot/command.rb @@ -54,7 +54,7 @@ module YouPlot def read_dsv(input) input = input.dup.force_encoding(options[:encoding]).encode('utf-8') if options[:encoding] - DSV.input(input, options[:delimiter], options[:headers], options[:transpose]) + DSV.parse(input, options[:delimiter], options[:headers], options[:transpose]) end def create_plot diff --git a/lib/youplot/dsv.rb b/lib/youplot/dsv.rb index f0faa6c..b542d02 100644 --- a/lib/youplot/dsv.rb +++ b/lib/youplot/dsv.rb @@ -7,7 +7,7 @@ module YouPlot module DSV module_function - def input(input, delimiter, headers, transpose) + def parse(input, delimiter, headers, transpose) arr = parse_as_csv(input, delimiter) headers = get_headers(arr, headers, transpose) series = get_series(arr, headers, transpose)