From d7e49f048fb116bd51bbe3ed126dd3919b419648 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 11 Oct 2020 07:55:20 +0900 Subject: [PATCH] Add a comment to params --- lib/uplot/command/params.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/uplot/command/params.rb b/lib/uplot/command/params.rb index 618a33d..2633d8d 100644 --- a/lib/uplot/command/params.rb +++ b/lib/uplot/command/params.rb @@ -2,6 +2,11 @@ module Uplot class Command + # UnicodePlot parameters. + # * Normally in a Ruby program, you might use hash for the parameter object. + # * Here, I use Struct for 2 safety reason. + # * The keys are static in Struct. + # * Struct does not conflict with keyword arguments. Hash dose. Params = Struct.new( # Sort me! :title,