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)