mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 07:10:10 +08:00
Add comments
This commit is contained in:
parent
d30942fef6
commit
7e97d44caf
@ -1,5 +1,8 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# UnicodePlot - Plot your data by Unicode characters
|
||||||
|
# https://github.com/red-data-tools/unicode_plot.rb
|
||||||
|
|
||||||
require_relative 'processing'
|
require_relative 'processing'
|
||||||
require 'unicode_plot'
|
require 'unicode_plot'
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module YouPlot
|
module YouPlot
|
||||||
|
# Command line options that are not Plot parameters
|
||||||
Options = Struct.new(
|
Options = Struct.new(
|
||||||
:delimiter,
|
:delimiter,
|
||||||
:transpose,
|
:transpose,
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
module YouPlot
|
module YouPlot
|
||||||
# UnicodePlot parameters.
|
# UnicodePlot parameters.
|
||||||
# * Normally in a Ruby program, you might use hash for the parameter object.
|
# Why Struct, not Hash?
|
||||||
# * Here, I use Struct for 2 safety reason.
|
|
||||||
# * The keys are static in Struct.
|
# * The keys are static in Struct.
|
||||||
# * Struct does not conflict with keyword arguments. Hash dose.
|
# * Struct does not conflict with keyword arguments. Hash dose.
|
||||||
Parameters = Struct.new(
|
Parameters = Struct.new(
|
||||||
|
@ -4,6 +4,7 @@ require 'optparse'
|
|||||||
require_relative 'options'
|
require_relative 'options'
|
||||||
|
|
||||||
module YouPlot
|
module YouPlot
|
||||||
|
# Class for parsing command line options
|
||||||
class Parser
|
class Parser
|
||||||
class Error < StandardError; end
|
class Error < StandardError; end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user