Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/maliq/system_extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_symkey ⇒ Object
17 18 19 |
# File 'lib/maliq/system_extensions.rb', line 17 def to_symkey with({}) { |(k, v), h| h[k.intern] = v } end |
#values_atx(*keys) ⇒ Object
21 22 23 24 25 |
# File 'lib/maliq/system_extensions.rb', line 21 def values_atx(*keys) res = values_at(*keys) res = res.flatten if res.respond_to?(:flatten) res.compact end |