Class: YouPlot::Options
- Inherits:
-
Struct
- Object
- Struct
- YouPlot::Options
- Defined in:
- lib/youplot/options.rb
Overview
Command line options that are not Plot parameters
Constant Summary collapse
- DEFAULTS =
Default values for options. These are applied in Parser#resolve_options. Based on the following priority:
-
CLI options (highest priority)
-
Config file options
-
Default values (lowest priority) specified here.
-
{ delimiter: "\t", transpose: false, headers: nil, pass: false, output: nil, # resolved to $stderr at parse time (late binding) fmt: 'xyy', progressive: false, encoding: nil, reverse: false, color_names: false, debug: false }.freeze
Instance Attribute Summary collapse
-
#color_names ⇒ Object
Returns the value of attribute color_names.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#delimiter ⇒ Object
Returns the value of attribute delimiter.
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#fmt ⇒ Object
Returns the value of attribute fmt.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#output ⇒ Object
Returns the value of attribute output.
-
#pass ⇒ Object
Returns the value of attribute pass.
-
#progressive ⇒ Object
Returns the value of attribute progressive.
-
#reverse ⇒ Object
Returns the value of attribute reverse.
-
#transpose ⇒ Object
Returns the value of attribute transpose.
Instance Attribute Details
#color_names ⇒ Object
Returns the value of attribute color_names
5 6 7 |
# File 'lib/youplot/options.rb', line 5 def color_names @color_names end |
#debug ⇒ Object
Returns the value of attribute debug
5 6 7 |
# File 'lib/youplot/options.rb', line 5 def debug @debug end |
#delimiter ⇒ Object
Returns the value of attribute delimiter
5 6 7 |
# File 'lib/youplot/options.rb', line 5 def delimiter @delimiter end |
#encoding ⇒ Object
Returns the value of attribute encoding
5 6 7 |
# File 'lib/youplot/options.rb', line 5 def encoding @encoding end |
#fmt ⇒ Object
Returns the value of attribute fmt
5 6 7 |
# File 'lib/youplot/options.rb', line 5 def fmt @fmt end |
#headers ⇒ Object
Returns the value of attribute headers
5 6 7 |
# File 'lib/youplot/options.rb', line 5 def headers @headers end |
#output ⇒ Object
Returns the value of attribute output
5 6 7 |
# File 'lib/youplot/options.rb', line 5 def output @output end |
#pass ⇒ Object
Returns the value of attribute pass
5 6 7 |
# File 'lib/youplot/options.rb', line 5 def pass @pass end |
#progressive ⇒ Object
Returns the value of attribute progressive
5 6 7 |
# File 'lib/youplot/options.rb', line 5 def progressive @progressive end |
#reverse ⇒ Object
Returns the value of attribute reverse
5 6 7 |
# File 'lib/youplot/options.rb', line 5 def reverse @reverse end |
#transpose ⇒ Object
Returns the value of attribute transpose
5 6 7 |
# File 'lib/youplot/options.rb', line 5 def transpose @transpose end |