Class: String
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
-
#/(obj) ⇒ Object
A convenient way to do File.join Usage: ‘a’ / ‘b’ # => ‘a/b’.
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 |