From 943d4e6c44357366498ad35705a308d471c439ef Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sat, 10 Oct 2020 23:21:55 +0900 Subject: [PATCH] Use keyword arg for count --- lib/uplot/command.rb | 2 +- lib/uplot/plot.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/uplot/command.rb b/lib/uplot/command.rb index 5c42612..cc530dd 100644 --- a/lib/uplot/command.rb +++ b/lib/uplot/command.rb @@ -45,7 +45,7 @@ module Uplot when :bar, :barplot Plot.barplot(data, params) when :count, :c - Plot.barplot(data, params, count = true) + Plot.barplot(data, params, count: true) when :hist, :histogram Plot.histogram(data, params) when :line, :lineplot diff --git a/lib/uplot/plot.rb b/lib/uplot/plot.rb index 0b73ad9..e6e19a0 100644 --- a/lib/uplot/plot.rb +++ b/lib/uplot/plot.rb @@ -7,7 +7,7 @@ module Uplot module Plot module_function - def barplot(data, params, count = false) + def barplot(data, params, count: false) headers = data.headers series = data.series if count