Add a comment to params

This commit is contained in:
kojix2 2020-10-11 07:55:20 +09:00
parent 34ae2b5815
commit d7e49f048f

View File

@ -2,6 +2,11 @@
module Uplot module Uplot
class Command 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( Params = Struct.new(
# Sort me! # Sort me!
:title, :title,