Sha256: 6baf549ed5086f2ec533272ea04e303c9f50c153c816679a5576346ad69cb43f

Contents?: true

Size: 547 Bytes

Versions: 8

Compression:

Stored size: 547 Bytes

Contents

# frozen_string_literal: true

require "erb"
require "zeitwerk"

module Phlex
	Loader = Zeitwerk::Loader.for_gem(warn_on_extra_files: false).tap do |loader|
		loader.inflector.inflect("html" => "HTML")
		loader.ignore("#{__dir__}/phlex/testing")
		loader.setup
	end

	Error = Module.new
	ArgumentError = Class.new(ArgumentError) { include Error }
	NameError = Class.new(NameError) { include Error }

	extend self

	ATTRIBUTE_CACHE = {}

	def configuration
		@configuration ||= Configuration.new
	end

	def configure
		yield configuration
	end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phlex-1.0.1 lib/phlex.rb
phlex-1.1.1 lib/phlex.rb
phlex-1.2.2 lib/phlex.rb
phlex-1.2.1 lib/phlex.rb
phlex-1.2.0 lib/phlex.rb
phlex-1.1.0 lib/phlex.rb
phlex-1.0.0 lib/phlex.rb
phlex-1.0.0.rc2 lib/phlex.rb