Sha256: 02471322d5152242761be74d1026b15b16e58bd741a36d1be0cd00a0fdeb9943

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

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

# Extensions for String

class String

  # A convenient way to do File.join
  #
  # Example:
  #   'a' / 'b'                      # -> 'a/b'
  #   File.dirname(__FILE__) / 'bar' # -> "ramaze/snippets/string/bar"

  def / obj
    File.join(self, obj.to_s)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ramaze-0.2.0 lib/ramaze/snippets/string/DIVIDE.rb