Class: Grover::OptionsFixer
Overview
Convert string option values to boolean, numeric, and array literals
Constant Summary collapse
- FALSE_VALUES =
[nil, false, 0, '0', 'f', 'F', 'false', 'FALSE', 'off', 'OFF'].freeze
Instance Method Summary collapse
-
#initialize(options) ⇒ OptionsFixer
constructor
A new instance of OptionsFixer.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ OptionsFixer
Returns a new instance of OptionsFixer.
12 13 14 |
# File 'lib/grover/options_fixer.rb', line 12 def initialize() @options = end |
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/grover/options_fixer.rb', line 16 def run @options end |