Sha256: 923c24b6a7be93f7299ae64b79c169d428968e186634f37fceda4afa7a1b958a

Contents?: true

Size: 226 Bytes

Versions: 3

Compression:

Stored size: 226 Bytes

Contents

unless Symbol.is_a?(Comparable)
  class Symbol
    include Comparable
    
		def =~(pattern)
			to_s =~ pattern
		end

    def <=>(other)
      return nil unless other.is_a?(Symbol)
      to_s <=> other.to_s
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
citeproc-0.0.8 lib/citeproc/compatibility.rb
citeproc-0.0.6 lib/citeproc/compatibility.rb
citeproc-0.0.3 lib/citeproc/compatibility.rb