# File lib/slop.rb, line 641 def to_hash(symbols=true) @options.reduce({}) do |hsh, option| key = option.key key = key.to_sym if symbols hsh[key] = option.argument_value hsh end end