mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
Rename input to parse
This commit is contained in:
parent
f0c5e631f7
commit
9a7f066f3b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user