/usr/lib/ruby/1.8/extlib/symbol.rb is in libextlib-ruby1.8 0.9.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | class Symbol
def try_dup
self
end
##
# 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
def /(o)
File.join(self.to_s, o.to_s)
end
end
|