Sha256: e78a3a7af4ae623658a68e7787c286e3f53d7346a5fa2ee9bce47aea5ce9c29f
Contents?: true
Size: 382 Bytes
Versions: 3
Compression:
Stored size: 382 Bytes
Contents
# DEPRECATE for 1.9 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-2.2.1 | lib/core/facets/symbol/succ.rb |
facets-2.2.0 | lib/core/facets/symbol/succ.rb |
facets-2.3.0 | lib/core/facets/symbol/succ.rb |