Class: AlgoPlot::Options
- Inherits:
-
Object
- Object
- AlgoPlot::Options
- Defined in:
- lib/algoplot/options.rb
Constant Summary collapse
- SCRIPT =
'algoplot'
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(argv) ⇒ Options
Returns a new instance of Options.
10 11 12 13 14 15 |
# File 'lib/algoplot/options.rb', line 10 def initialize(argv) @options = {:n => 100, :functions => [], :output => nil} argv = ["-h"] if argv.empty? (argv) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/algoplot/options.rb', line 6 def @options end |