Class: Hash
Overview
TODO1 remove it, we don’t use facets anymore
Direct Known Subclasses
Rad::Router::AbstractRouter::Meta, Rad::Router::AliasRouter::TreeHash
Instance Method Summary collapse
Instance Method Details
#slice(*keep_keys) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/rad/_support/hacks_and_fixes.rb', line 18 def slice(*keep_keys) hash = {} keep_keys.each do |key| # hash[key] = fetch(key) hash[key] = self[key] end hash end |