Sha256: 175c92f7280d659d6b073689c4f65abcc42ae3a32f29decccb8eaaa74ecb9302
Contents?: true
Size: 313 Bytes
Versions: 64
Compression:
Stored size: 313 Bytes
Contents
class Hash public def symbolize_keys hash = {} self.each do |key, value| hash[(key.to_sym rescue key) || key] = value end hash end end class String public def ends_with?(str) str = str.to_str tail = self[-str.length, str.length] tail == str end end
Version data entries
64 entries across 64 versions & 2 rubygems