Sha256: 481b8e90757494e4d68f9baed66ecaf5d0bdd98a34a2e558eeb5bfa609e5f393

Contents?: true

Size: 952 Bytes

Versions: 1

Compression:

Stored size: 952 Bytes

Contents

[
  'invalid_operation',
  'children_hash_deferer',
  'compressor',
  'branches',
  'enumerable',
  'node',
  'root',
  'version'
].map { |file| File.join 'rambling', 'trie', file }.each &method(:require)

# General namespace for all Rambling gems.
module Rambling
  # Entry point for rambling-trie API.
  module Trie
    class << self
      # Creates a new Trie. Entry point for the Rambling::Trie API.
      # @param [String, nil] filename the file to load the words from (defaults to nil).
      def create(filename = nil)
        Root.new filename
      end

      # Creates a new Trie. Entry point for the Rambling::Trie API.
      # @param [String, nil] filename the file to load the words from (defaults to nil).
      # @deprecated Please use {.create} instead.
      # @see .create
      def new(filename = nil)
        warn '[DEPRECATION] `new` is deprecated. Please use `create` instead.'
        create filename
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rambling-trie-0.4.2 lib/rambling/trie.rb