class Symbol

Public Instance Methods

/(o) click to toggle source

Join with o as a file path

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

@param [#to_s] o The path component(s) to append.

@return [String] The receiver (as path string), concatenated with o.

@api public

# File lib/extlib/symbol.rb, line 18
def /(o)
  File.join(self.to_s, o.to_s)
end
try_dup() click to toggle source
# File lib/extlib/symbol.rb, line 3
def try_dup
  self
end