Sha256: 36e6d7739e2edda76dbea15896cc547d954fd52e202d02b6cde95f9ac7601a05

Contents?: true

Size: 1.26 KB

Versions: 5

Compression:

Stored size: 1.26 KB

Contents

# frozen_string_literal: true

require "erb"

module Phlex
	autoload :Context, "phlex/context"
	autoload :DeferredRender, "phlex/deferred_render"
	autoload :ElementClobberingGuard, "phlex/element_clobbering_guard"
	autoload :Elements, "phlex/elements"
	autoload :HTML, "phlex/html"
	autoload :Helpers, "phlex/helpers"
	autoload :SGML, "phlex/sgml"
	autoload :SVG, "phlex/svg"
	autoload :Unbuffered, "phlex/unbuffered"
	autoload :ConcurrentMap, "phlex/concurrent_map"
	autoload :BlackHole, "phlex/black_hole"
	autoload :CSV, "phlex/csv"
	autoload :Callable, "phlex/callable"
	autoload :Kit, "phlex/kit"

	# Included in all Phlex exceptions allowing you to match any Phlex error.
	# @example Rescue any Phlex error:
	#  rescue Phlex::Error
	module Error; end

	if defined?(ERB::Escape)
		Escape = ERB::Escape
	else
		Escape = ERB::Util
	end

	# A specialised ArgumentError for Phlex.
	class ArgumentError < ::ArgumentError
		include Error
	end

	# A specialised NameError for Phlex.
	class NameError < ::NameError
		include Error
	end

	# @api private
	ATTRIBUTE_CACHE = {}

	SUPPORTS_FIBER_STORAGE = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.2")
end

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.0")
	class Symbol
		def name
			to_s
		end
	end
end

def 💪
	Phlex
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
phlex-1.11.0 lib/phlex.rb
phlex-1.10.3 lib/phlex.rb
phlex-1.10.2 lib/phlex.rb
phlex-1.10.1 lib/phlex.rb
phlex-1.10.0 lib/phlex.rb