Sha256: e838e9c68a8e2ba97bfafb634229ec7f286a923e280e80b3eb2eb28e0976bd30

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true
require 'rails'
require_relative "verndari/version"
require_relative "verndari/configuration"
require "verndari/railtie" if defined?(Rails)

module Verndari
  class Error < StandardError; end

  class << self
    attr_accessor :configuration
  end

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

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yield(configuration)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
verndari-0.2.20 lib/verndari.rb
verndari-0.2.19 lib/verndari.rb