Method: Charisma::Curator#to_hash
- Defined in:
- lib/charisma/curator.rb
#to_hash ⇒ Hash
Provide a hash of the plain values (dropping presentation information).
Previous versions of leap returned a hash of display-friendly representations; this was rather surprising and not especially useful.
58 59 60 61 62 63 |
# File 'lib/charisma/curator.rb', line 58 def to_hash characteristics.inject({}) do |memo, (k, v)| memo[k] = v.value memo end end |