lib/core/facets/symbol/succ.rb in facets-2.1.3 vs lib/core/facets/symbol/succ.rb in facets-2.2.0

- old
+ new

@@ -1,19 +1,20 @@ -class Symbol +# DEPRECATE for 1.9 +unless (RUBY_VERSION[0,3] == '1.9') - # 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 - # - #-- - # In the future I would like this to work more like - # a simple character dial. - #++ + class Symbol - def succ - self.to_s.succ.intern + # 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