Sha256: 3b9003fc6ac8f0ce9af20dc8f43bdea5a864dccb2024a115328996b280f5bd11

Contents?: true

Size: 546 Bytes

Versions: 3

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

require 'logger'
require 'json'
require 'faraday'
require 'faraday/multipart'
require 'zeitwerk'
require 'dry-struct'

module Telegram
  module Bot
    class << self
      attr_writer :configuration
    end

    def self.configuration
      @configuration ||= Configuration.new
    end

    def self.configure
      yield(configuration)
    end
  end
end

loader = Zeitwerk::Loader.new
loader.inflector = Zeitwerk::GemInflector.new(__FILE__)
loader.push_dir("#{__dir__}/bot", namespace: Telegram::Bot)
loader.setup

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
telegram-bot-ruby-1.0.0 lib/telegram/bot.rb
telegram-bot-ruby-1.0.0.rc1 lib/telegram/bot.rb
telegram-bot-ruby-1.0.0.pre lib/telegram/bot.rb