Class: String

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

Overview

Copyright © 2008 Michael Fellinger [email protected] All files in this distribution are subject to the terms of the Ruby license.

Instance Method Summary collapse

Instance Method Details

#/(obj) ⇒ Object

A convenient way to do File.join Usage:

'a' / 'b' # => 'a/b'


8
9
10
11
# File 'lib/ramaze/snippets/divide.rb', line 8

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