Sha256: 155888bfffeb1111ef30dc75ac81e4273a0d7bfed9ff1f7076b0588c2200109f

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

module Helpers
  module Path
    def path *filename
      Pathname.new(full_path *filename).cleanpath
    end

    def dictionary
      path 'assets', 'dictionaries', 'words_with_friends.txt'
    end

    private

    def full_path *filename
      full_path = File.join File.dirname(__FILE__), '..', '..', '..', '..', '..', *filename
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rambling-trie-0.9.3 lib/rambling/trie/tasks/helpers/path.rb
rambling-trie-0.9.2 lib/rambling/trie/tasks/helpers/path.rb
rambling-trie-0.9.1 lib/rambling/trie/tasks/helpers/path.rb