Sha256: 12f9d1810c3dafe43cd55cabd050c10e8d4d7b33f7bc4462dd5e1599818539dd

Contents?: true

Size: 329 Bytes

Versions: 7

Compression:

Stored size: 329 Bytes

Contents

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
  #
  #--
  # In the future I would like this to work more like
  # a simple character dial.
  #++

  def succ
    self.to_s.succ.intern
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
facets-2.0.5 lib/core/facets/symbol/succ.rb
facets-2.0.3 lib/core/facets/symbol/succ.rb
facets-2.0.4 lib/core/facets/symbol/succ.rb
facets-2.1.2 lib/core/facets/symbol/succ.rb
facets-2.1.0 lib/core/facets/symbol/succ.rb
facets-2.1.1 lib/core/facets/symbol/succ.rb
facets-2.1.3 lib/core/facets/symbol/succ.rb