Sha256: 5279ce2f17a6b670af3d61760e4ff2866bf05922251c8382a247d1f4e4935851

Contents?: true

Size: 181 Bytes

Versions: 4

Compression:

Stored size: 181 Bytes

Contents

require 'pathname'

module Waddup

  module Extension::FileSystem

    # Resolves folder for given path
    def folder_of(path)
      Pathname.new(path).dirname
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
waddup-0.2.2 lib/waddup/extensions/file_system.rb
waddup-0.2.1 lib/waddup/extensions/file_system.rb
waddup-0.2.0 lib/waddup/extensions/file_system.rb
waddup-0.1.0 lib/waddup/extensions/file_system.rb