Sha256: 2be22feb3a1ae5219550a232800df0324bac83c50cd5d7cba53cfbc3d84b4257

Contents?: true

Size: 198 Bytes

Versions: 2

Compression:

Stored size: 198 Bytes

Contents

#
# File::      SymbolComparison.rb
# Author::    wkm
# Copyright:: 2009
#
# Defines a spaceship for symbols based off of to_s
#

class Symbol
  def <=>(other)
    self.to_s <=> other.to_s
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sitefuel-0.0.0b lib/sitefuel/extensions/SymbolComparison.rb
sitefuel-0.0.0a lib/sitefuel/extensions/SymbolComparison.rb