Method: Sinatra::IndifferentHash#slice

Defined in:
lib/sinatra/indifferent_hash.rb

#slice(*keys) ⇒ Object



113
114
115
116
117
# File 'lib/sinatra/indifferent_hash.rb', line 113

def slice(*keys)
  keys.map!(&method(:convert_key))

  self.class[super(*keys)]
end