Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/lita-digitalocean.rb

Overview

This unfortunate monkey patch can be removed when a new i18n gem is released with the following patch in it: github.com/svenfuchs/i18n/pull/250

Instance Method Summary collapse

Instance Method Details

#slice(*keep_keys) ⇒ Object



4
5
6
7
8
# File 'lib/lita-digitalocean.rb', line 4

def slice(*keep_keys)
  h = self.class.new
  keep_keys.each { |key| h[key] = fetch(key) }
  h
end