Module: HTMX

Defined in:
lib/htmx.rb,
lib/htmx/error.rb,
lib/htmx/prefixer.rb,
lib/htmx/headers/request.rb,
lib/htmx/headers/response.rb

Overview

Main namespace.

Defined Under Namespace

Modules: Headers Classes: Error, Prefixer

Class Method Summary collapse

Class Method Details

.[]Object



18
19
20
21
# File 'lib/htmx.rb', line 18

def self.[](...)
  @prefixer ||= Prefixer.new
  @prefixer.call(...)
end

.loader(registry = Zeitwerk::Registry) ⇒ Object



14
15
16
# File 'lib/htmx.rb', line 14

def self.loader registry = Zeitwerk::Registry
  @loader ||= registry.loaders.find { |loader| loader.tag == File.basename(__FILE__, ".rb") }
end