Method: HighLine::ColorScheme#to_hash
- Defined in:
- lib/highline/color_scheme.rb
#to_hash ⇒ Hash
Retrieve the color scheme hash (in original definition format)
105 106 107 108 109 110 |
# File 'lib/highline/color_scheme.rb', line 105 def to_hash @scheme.each_with_object({}) do |pair, hsh| key, value = pair hsh[key] = value.list end end |