Sha256: 4a814c55f5a3b6810cce9e1c83110c875cde215ed9379ab1cf22a233dcd79ff5

Contents?: true

Size: 569 Bytes

Versions: 30

Compression:

Stored size: 569 Bytes

Contents

class Pathname
  # Append path segments and expand to absolute path
  #
  #   file = Pathname(Dir.pwd) / "subdir1" / :subdir2 / "filename.ext"
  #
  # @param [Pathname, String, #to_s] path path segment to concatenate with receiver
  #
  # @return [Pathname]
  #   receiver with _path_ appended and expanded to an absolute path
  #
  # @api public
  def /(path)
    (self + path).expand_path
  end

  # alias to_s to to_str when to_str not defined
  unless public_instance_methods(false).any? { |m| m.to_sym == :to_str }
    alias to_str to_s
  end
end # class Pathname

Version data entries

30 entries across 29 versions & 7 rubygems

Version Path
extlib-0.9.16 lib/extlib/pathname.rb
dm-core-1.0.1 lib/dm-core/core_ext/pathname.rb
dm-core-1.0.0 lib/dm-core/core_ext/pathname.rb
dm-core-1.0.0.rc3 lib/dm-core/core_ext/pathname.rb
dm-core-1.0.0.rc2 lib/dm-core/core_ext/pathname.rb
dm-core-1.0.0.rc1 lib/dm-core/core_ext/pathname.rb
extlib-0.9.15 lib/extlib/pathname.rb
robsharp-extlib-0.9.15 lib/extlib/pathname.rb
sundbp-extlib-0.9.14 lib/extlib/pathname.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/extlib-0.9.14/lib/extlib/pathname.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.8/gems/extlib-0.9.14/lib/extlib/pathname.rb
middleman-0.12.2 lib/middleman/vendor/gems/gems/extlib-0.9.14/lib/extlib/pathname.rb
middleman-0.12.1 lib/middleman/vendor/gems/gems/extlib-0.9.14/lib/extlib/pathname.rb
extlib-0.9.14 lib/extlib/pathname.rb
ginst-2009.12.8 vendor/gems/extlib-0.9.13/lib/extlib/pathname.rb
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/pathname.rb
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/pathname.rb
middleman-0.12.0.pre lib/middleman/vendor/gems/gems/extlib-0.9.13/lib/extlib/pathname.rb
ginst-2009.11.24 vendor/gems/extlib-0.9.13/lib/extlib/pathname.rb
ginst-2009.11.23 vendor/gems/extlib-0.9.13/lib/extlib/pathname.rb