Sha256: 63bd7e387995dd79c30c71fcb3d95209d3c35a86cdde92d1d1d32c27186d5b79

Contents?: true

Size: 533 Bytes

Versions: 21

Compression:

Stored size: 533 Bytes

Contents

#          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

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

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
Pistos-ramaze-2008.12 lib/ramaze/snippets/divide.rb
Pistos-ramaze-2009.01 lib/ramaze/snippets/divide.rb
Pistos-ramaze-2009.02 lib/ramaze/snippets/divide.rb
Pistos-ramaze-2009.04.08 lib/ramaze/snippets/divide.rb
manveru-ramaze-2008.10 lib/ramaze/snippets/divide.rb
manveru-ramaze-2008.12 lib/ramaze/snippets/divide.rb
manveru-ramaze-2009.01 lib/ramaze/snippets/divide.rb
manveru-ramaze-2009.04.01 lib/ramaze/snippets/divide.rb
manveru-ramaze-2009.04.08 lib/ramaze/snippets/divide.rb
manveru-ramaze-2009.04.18 lib/ramaze/snippets/divide.rb
manveru-ramaze-2009.04.22 lib/ramaze/snippets/divide.rb
manveru-ramaze-2009.04 lib/ramaze/snippets/divide.rb
manveru-ramaze-2009.05.08 lib/ramaze/snippets/divide.rb
manveru-ramaze-2009.05 lib/ramaze/snippets/divide.rb
ptomato-ramaze-2009.02.1 lib/ramaze/snippets/divide.rb
ptomato-ramaze-2009.02 lib/ramaze/snippets/divide.rb
ramaze-2009.01 lib/ramaze/snippets/divide.rb
ramaze-2009.02 lib/ramaze/snippets/divide.rb
ramaze-2009.05 lib/ramaze/snippets/divide.rb
ramaze-2009.04 lib/ramaze/snippets/divide.rb