Module: Cubrid2::Util
- Defined in:
- lib/cubrid2.rb
Constant Summary collapse
- TIMEOUT_ERROR_CLASS =
if defined?(::Timeout::ExitException) ::Timeout::ExitException else ::Timeout::Error end
Class Method Summary collapse
-
.key_hash_as_symbols(hash) ⇒ Object
Rekey a string-keyed hash with equivalent symbols.
Class Method Details
.key_hash_as_symbols(hash) ⇒ Object
Rekey a string-keyed hash with equivalent symbols.
55 56 57 58 59 |
# File 'lib/cubrid2.rb', line 55 def self.key_hash_as_symbols(hash) return nil unless hash Hash[hash.map { |k, v| [k.to_sym, v] }] end |