Sha256: 043338e019d2eb4217b6935a863ca6004643da3b8edf760ff13f306ebf597d9d
Contents?: true
Size: 609 Bytes
Versions: 12
Compression:
Stored size: 609 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 to_string(pre="") "#{pre}#{self.to_s}" 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 end
Version data entries
12 entries across 12 versions & 3 rubygems