Sha256: 63423dd9db40ca14402f4e1d64cbcb0a38fcdd1d2937c64afd2a60fbf9f9c58a

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

Contents

# frozen_string_literal: true

require "phlex"
require "phlex/rails/engine"

module Phlex
	module Rails
		Loader = Zeitwerk::Loader.new.tap do |loader|
			loader.push_dir("#{__dir__}/rails", namespace: Phlex::Rails)
			loader.inflector = Zeitwerk::GemInflector.new(__FILE__)
			loader.inflector.inflect(
				"html" => "HTML",
				"sgml" => "SGML"
			)
			loader.setup
		end
	end

	class SGML
		extend Phlex::Rails::SGML::ClassMethods

		prepend Phlex::Rails::SGML::Overrides
	end

	class HTML
		extend Phlex::Rails::HTML::Format
		include Phlex::Rails::HTML::Format
	end

	class Unbuffered
		prepend ::Phlex::Rails::UnbufferedOverrides
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phlex-rails-0.10.0 lib/phlex/rails.rb
phlex-rails-0.8.1 lib/phlex/rails.rb
phlex-rails-0.9.0 lib/phlex/rails.rb
phlex-rails-0.8.0 lib/phlex/rails.rb