Method: Sinatra::IndifferentHash#replace
- Defined in:
- lib/sinatra/indifferent_hash.rb
#replace(other_hash) ⇒ Object
147 148 149 |
# File 'lib/sinatra/indifferent_hash.rb', line 147 def replace(other_hash) super(other_hash.is_a?(self.class) ? other_hash : self.class[other_hash]) end |