diff --git a/lib/preprocess.rb b/lib/preprocess.rb index 048c36b..6bdf76f 100644 --- a/lib/preprocess.rb +++ b/lib/preprocess.rb @@ -1,5 +1,5 @@ module Uplot - module Preprocess + module Preprocessing module_function def input(input, delimiter, headers, transpose) diff --git a/lib/uplot.rb b/lib/uplot.rb index d47fa2c..c4146ca 100644 --- a/lib/uplot.rb +++ b/lib/uplot.rb @@ -1,6 +1,6 @@ require 'unicode_plot' require 'uplot/version' -require 'uplot/preprocess' +require 'uplot/Preprocessing' require 'uplot/command.rb' module Uplot diff --git a/lib/uplot/command.rb b/lib/uplot/command.rb index b9ccba2..2451239 100644 --- a/lib/uplot/command.rb +++ b/lib/uplot/command.rb @@ -247,7 +247,7 @@ module Uplot while input = Kernel.gets(nil) input.freeze @raw_inputs << input - @data = Preprocess.input(input, @delimiter, @headers, @transpose) + @data = Preprocessing.input(input, @delimiter, @headers, @transpose) case plot_type when :bar, :barplot barplot(@data) @@ -278,7 +278,7 @@ module Uplot headers = data.headers series = data.series if @count - series = Preprocess.count(series[0]) + series = Preprocessing.count(series[0]) params.title = headers[0] if headers end params.title ||= headers[1] if headers