lib/ramaze/snippets/divide.rb in manveru-ramaze-2008.09 vs lib/ramaze/snippets/divide.rb in manveru-ramaze-2008.10

- old
+ new

@@ -4,17 +4,19 @@ class String # A convenient way to do File.join # Usage: # 'a' / 'b' # => 'a/b' def / obj + Ramaze.deprecated('String#/', 'File::join') File.join(self, obj.to_s) end end class Symbol # A convenient way to do File.join # Usage: # :dir/:file # => 'dir/file' def / obj + Ramaze.deprecated('Symbol#/', 'File::join(sym.to_s)') self.to_s / obj end end