Sha256: afb9aae34ec5c4143e7199ba8f4db2e78431fefe59b7beff49f38fd1cbbdb039

Contents?: true

Size: 330 Bytes

Versions: 10

Compression:

Stored size: 330 Bytes

Contents

#--
# Credit goes to Paul Brannan <paul_at_atdesk.com>
#++
class String
  # Allow easy manipulation of path strings.
  #
  #   require 'facet/string/slash'
  #
  #   prefix = '/usr' / 'local'  #=> "/usr/local"
  #   prefix / 'bin'             #=> "/usr/local/bin"
  #
  def /(other)  #:infix:
    File.join(self, other)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
facets-0.6.3 lib/facet-dev/string/slash.rb
facets-1.4.1 forge/core/string/op_div.rb
facets-1.4.2 forge/core/string/op_div.rb
facets-1.4.3 forge/core/string/op_div.rb
facets-1.4.4 forge/core/string/op_div.rb
facets-1.4.5 snip/core/string/op_div.rb
facets-1.8.49 work/core/string/op_div.rb
facets-1.8.0 work/core/string/op_div.rb
facets-1.8.20 work/core/string/op_div.rb
facets-1.8.8 work/core/string/op_div.rb