Sha256: a98b59fbc01f516a396b98a1c86c30c9b71157c9135fbe278f01d41f091c0364

Contents?: true

Size: 402 Bytes

Versions: 4

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true
require 'wordlist/list_methods'

module Wordlist
  #
  # The base class for all wordlist classes.
  #
  # @since 1.0.0
  #
  class AbstractWordlist

    include Enumerable
    include ListMethods

    #
    # Place holder method.
    #
    # @abstract
    #
    def each(&block)
      raise(NotImplementedError,"#{self.class}#each was not implemented")
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wordlist-1.1.0 lib/wordlist/abstract_wordlist.rb
wordlist-1.0.3 lib/wordlist/abstract_wordlist.rb
wordlist-1.0.2 lib/wordlist/abstract_wordlist.rb
wordlist-1.0.1 lib/wordlist/abstract_wordlist.rb