Class: Symbol

Inherits:
Object show all
Defined in:
lib/poolparty/core/symbol.rb

Instance Method Summary collapse

Instance Method Details

#/(o) ⇒ String

Returns The original path concatenated with o.

Examples:

:merb/"core_ext" #=> "merb/core_ext"

Parameters:

  • o (String, Symbol)

    The path component to join with the string.

Returns:

  • (String)

    The original path concatenated with o.



24
25
26
# File 'lib/poolparty/core/symbol.rb', line 24

def /(o)
  File.join(self.to_s, o.to_s)
end

#<=>(b) ⇒ Object



14
15
16
# File 'lib/poolparty/core/symbol.rb', line 14

def <=>(b)
  "#{self}" <=> "#{b}"
end

#sanitizeObject



11
12
13
# File 'lib/poolparty/core/symbol.rb', line 11

def sanitize
  self.to_s.sanitize
end

#to_string(pre = "") ⇒ Object

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



8
9
10
# File 'lib/poolparty/core/symbol.rb', line 8

def to_string(pre="")
  "#{pre}#{self.to_s}"
end