mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-09-17 00:28:11 +08:00
Rename input to parse
This commit is contained in:
@@ -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
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user