Module: Phlex::Rails::Layout

Class Method Summary collapse

Methods included from Helpers::JavaScriptImportModuleTag

#javascript_import_module_tag

Methods included from Helpers::JavaScriptImportMapTags

#javascript_importmap_tags

Methods included from Helpers::JavaScriptIncludeTag

#javascript_include_tag

Methods included from Helpers::AutoDiscoveryLinkTag

#auto_discovery_link_tag

Methods included from Helpers::ActionCableMetaTag

#action_cable_meta_tag

Methods included from Helpers::StyleSheetLinkTag

#stylesheet_link_tag

Methods included from Helpers::PreloadLinkTag

#preload_link_tag

Methods included from Helpers::FaviconLinkTag

#favicon_link_tag

Methods included from Helpers::CSRFMetaTags

#csrf_meta_tags

Methods included from Helpers::CSPMetaTag

#csp_meta_tag

Class Method Details

.included(klass) ⇒ Object



53
54
55
56
57
58
59
60
# File 'lib/phlex/rails/layout.rb', line 53

def self.included(klass)
	unless klass < Phlex::HTML
		raise Phlex::ArgumentError,
			"👋 #{name} should only be included into Phlex::HTML classes."
	end

	klass.extend(Interface)
end