Class: RipperTags::ForgivingOptionParser
- Inherits:
-
OptionParser
- Object
- OptionParser
- RipperTags::ForgivingOptionParser
- Defined in:
- lib/ripper-tags.rb
Instance Attribute Summary collapse
-
#ignore_unsupported_options ⇒ Object
Returns the value of attribute ignore_unsupported_options.
Instance Method Summary collapse
Instance Attribute Details
#ignore_unsupported_options ⇒ Object
Returns the value of attribute ignore_unsupported_options.
36 37 38 |
# File 'lib/ripper-tags.rb', line 36 def end |
Instance Method Details
#load_options_file(file) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/ripper-tags.rb', line 38 def (file) @argv.unshift(*File.readlines(file).flat_map { |line| line.strip!.match(/(=|\s)/) ($1 == "" || $1 == "=") ? line : line.split(/\s+/, 2) }) end |