Class: Symbol

Inherits:
Object show all
Defined in:
lib/ramaze/snippets/divide.rb

Instance Method Summary collapse

Instance Method Details

#/(obj) ⇒ Object

A convenient way to do File.join Usage:

:dir/:file # => 'dir/file'


18
19
20
21
# File 'lib/ramaze/snippets/divide.rb', line 18

def / obj
  Ramaze.deprecated('Symbol#/', 'File::join(sym.to_s)')
  self.to_s / obj
end