Method: ActiveSupport::HashWithIndifferentAccess#slice
- Defined in:
- lib/active_support/hash_with_indifferent_access.rb
#slice(*keys) ⇒ Object
380 381 382 383 |
# File 'lib/active_support/hash_with_indifferent_access.rb', line 380 def slice(*keys) keys.map! { |key| convert_key(key) } self.class.new(super) end |