mirror of
				https://github.com/red-data-tools/YouPlot.git
				synced 2025-11-04 19:58:12 +08:00 
			
		
		
		
	Add a comment to params
This commit is contained in:
		@@ -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,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user