Sha256: c6005f3b611c39ae63bb6560e66f9b53179d5d882acb8b6c72d71e4e34b316c9
Contents?: true
Size: 627 Bytes
Versions: 48
Compression:
Stored size: 627 Bytes
Contents
class Symbol # def >(num);"#{self} > #{num}";end # def <(num);"#{self} < #{num}";end # def >=(num);"#{self} >= #{num}";end # def <=(num);"#{self} <= #{num}";end # def ==(num);"#{self} > #{num}";end def sanitize self.to_s.sanitize end def <=>(b) "#{self}" <=> "#{b}" end ## # @param o<String, Symbol> The path component to join with the string. # # @return <String> The original path concatenated with o. # # @example # :merb/"core_ext" #=> "merb/core_ext" def /(o) File.join(self.to_s, o.to_s) end # Classify the symbol def classify to_s.classify.to_sym end end
Version data entries
48 entries across 48 versions & 3 rubygems