Sha256: 6be143f74601b1562f538988de5503e373333034208ae75441a345fd37be649e

Contents?: true

Size: 125 Bytes

Versions: 11

Compression:

Stored size: 125 Bytes

Contents

class String

  # Transforms string into an actual path
  def cleaned_path
    "/#{self}/".gsub(/^\/+|\/+$/, '/')
  end

end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
nanoc2-2.2.3 lib/nanoc2/base/core_ext/string.rb
nanoc-2.1.5 lib/nanoc/base/core_ext/string.rb
nanoc-2.2 lib/nanoc/base/core_ext/string.rb
nanoc-2.1 lib/nanoc/base/core_ext/string.rb
nanoc-2.1.2 lib/nanoc/base/core_ext/string.rb
nanoc-2.1.1 lib/nanoc/base/core_ext/string.rb
nanoc-2.1.4 lib/nanoc/base/core_ext/string.rb
nanoc-2.1.6 lib/nanoc/base/core_ext/string.rb
nanoc-2.2.1 lib/nanoc/base/core_ext/string.rb
nanoc-2.2.2 lib/nanoc/base/core_ext/string.rb
nanoc-2.1.3 lib/nanoc/base/core_ext/string.rb