Sha256: 750f30d57085a68fe4c13f3437ab8201ae31b21e0b6f909f7a76d25976366815
Contents?: true
Size: 361 Bytes
Versions: 5
Compression:
Stored size: 361 Bytes
Contents
unless (RUBY_VERSION[0,3] == '1.9') class Symbol # Successor method for symobol. This simply converts # the symbol to a string uses String#succ and then # converts it back to a symbol. # # :a.succ => :b # # TODO: Make this work more like a simple character dial? def succ self.to_s.succ.intern end end end
Version data entries
5 entries across 5 versions & 2 rubygems