Top Level Namespace
Defined Under Namespace
Modules: KhanAcademy, Rubykhan
Instance Method Summary collapse
Instance Method Details
#values(hsh, key) ⇒ Object
6 7 8 9 10 |
# File 'lib/rubykhan.rb', line 6 def values(hsh, key) return [] unless hsh.kind_of? Hash v = hsh[key] ? [hsh[key]] : [] return v end |