Sha256: 8c547dbe1cee418d5087c539d5a92e197c046a9c8f29eeb86cc7da7a74ea4ece
Contents?: true
Size: 344 Bytes
Versions: 4
Compression:
Stored size: 344 Bytes
Contents
class Hash # fix bug here unless self.method_defined?(:symbolize_keys!) def symbolize_keys! self.keys.each { |key| self[(key.to_sym rescue key) || key] = self.delete(key) } end end end class Array def ask_all? &block result = [] self.each do |el| result << block.call(el) end result.all? end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
appsent-0.0.4 | lib/appsent/tools.rb |
appsent-0.0.3 | lib/appsent/tools.rb |
appsent-0.0.2 | lib/appsent/tools.rb |
appsent-0.0.1 | lib/appsent/tools.rb |