Sha256: 62df1ba3cd295dc4177c4c048929c4b2541845d934c1a2f1dda2985dc80344a9
Contents?: true
Size: 377 Bytes
Versions: 6
Compression:
Stored size: 377 Bytes
Contents
module Saorin module Utility class << self def extract_options!(args) args.last.is_a?(::Hash) ? args.pop : {} end def symbolized_keys(hash) hash = hash.dup hash.keys.each do |key| if key.is_a?(::String) hash[key.to_sym] = hash.delete(key) end end hash end end end end
Version data entries
6 entries across 6 versions & 1 rubygems