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

Version Path
auser-poolparty-1.2.1 lib/poolparty/core/symbol.rb
auser-poolparty-1.2.10 lib/poolparty/core/symbol.rb
auser-poolparty-1.2.11 lib/poolparty/core/symbol.rb
auser-poolparty-1.2.12 lib/poolparty/core/symbol.rb
auser-poolparty-1.2.2 lib/poolparty/core/symbol.rb
auser-poolparty-1.2.3 lib/poolparty/core/symbol.rb
auser-poolparty-1.2.4 lib/poolparty/core/symbol.rb
auser-poolparty-1.2.7 lib/poolparty/core/symbol.rb
auser-poolparty-1.2.8 lib/poolparty/core/symbol.rb
auser-poolparty-1.2.9 lib/poolparty/core/symbol.rb
fairchild-poolparty-1.2.12 lib/poolparty/core/symbol.rb
poolparty-1.2.2 lib/poolparty/core/symbol.rb