Sha256: bfa7e7e631c16bea2219289ea543db85f6aa0a6d547e5b2f5041cf3a26d50d32

Contents?: true

Size: 1.86 KB

Versions: 2

Compression:

Stored size: 1.86 KB

Contents

# wwwjdic
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019  Marco Bresciani
#
# This file is part of wwwjdic.
#
# wwwjdic is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# wwwjdic is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.

require 'digest/md5'
require 'i18n'
require 'uri'

require_relative 'wwwjdic/application'
require_relative 'wwwjdic/parser'
require_relative 'wwwjdic/parsers/dict'
require_relative 'wwwjdic/parsers/display'
require_relative 'wwwjdic/parsers/key'
require_relative 'wwwjdic/parsers/search'
require_relative 'wwwjdic/parsers/server'

# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019  Marco Bresciani
# License:: GNU General Public License version 3
module WWWJDic

  # Creates a new WWWJDic object (from the verb 'to Breen'... :) ).
  #
  # Usage::
  #   - <tt>new_wwwjdic = WWWJDic::breener</tt>
  # Returns:: a +WWWJDic+ object.
  def self.breener
    WWWJDic.new(parser)
  end

# ------------------------------ here starts the list of private methods

  private

# Provides the parameters' parsers object.
  def self.parser
    parsers = {dict: Parsers::Dict.new, display: Parsers::Display.new,
               key: Parsers::Key.new, search: Parsers::Search.new,
               server: Parsers::Server.new}

    Parser.new parsers
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wwwjdic-13.0.1 lib/wwwjdic.rb
wwwjdic-13.0.0 lib/wwwjdic.rb