Class: Symbol

Inherits:
Object show all
Defined in:
lib/extlib/symbol.rb,
lib/extlib/try_dup.rb

Instance Method Summary collapse

Instance Method Details

#/(o) ⇒ String

Join with o as a file path

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

Parameters:

  • o (#to_s)

    The path component(s) to append.

Returns:

  • (String)

    The receiver (as path string), concatenated with o.



18
19
20
# File 'lib/extlib/symbol.rb', line 18

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

#try_dupObject



3
4
5
# File 'lib/extlib/symbol.rb', line 3

def try_dup
  self
end