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

Version Path
auser-poolparty-1.3.0 lib/core/symbol.rb
auser-poolparty-1.3.1 lib/core/symbol.rb
auser-poolparty-1.3.10 lib/core/symbol.rb
auser-poolparty-1.3.11 lib/core/symbol.rb
auser-poolparty-1.3.12 lib/core/symbol.rb
auser-poolparty-1.3.13 lib/core/symbol.rb
auser-poolparty-1.3.14 lib/core/symbol.rb
auser-poolparty-1.3.15 lib/core/symbol.rb
auser-poolparty-1.3.16 lib/core/symbol.rb
auser-poolparty-1.3.17 lib/core/symbol.rb
auser-poolparty-1.3.2 lib/core/symbol.rb
auser-poolparty-1.3.3 lib/core/symbol.rb
auser-poolparty-1.3.4 lib/core/symbol.rb
auser-poolparty-1.3.5 lib/core/symbol.rb
auser-poolparty-1.3.6 lib/core/symbol.rb
auser-poolparty-1.3.7 lib/core/symbol.rb
auser-poolparty-1.3.8 lib/core/symbol.rb
fairchild-poolparty-1.3.17 lib/core/symbol.rb
fairchild-poolparty-1.3.5 lib/core/symbol.rb
poolparty-1.6.9 lib/core/symbol.rb