Class: Pennyworth::CLI::Actions::HTMX::Extension

Inherits:
Sod::Action
  • Object
show all
Defined in:
lib/pennyworth/cli/actions/htmx/extension.rb

Overview

Handles extension documentation action.

Instance Method Summary collapse

Constructor Details

#initialize(processor: Processor.for_htmx) ⇒ Extension

Returns a new instance of Extension.



17
18
19
20
# File 'lib/pennyworth/cli/actions/htmx/extension.rb', line 17

def initialize(processor: Processor.for_htmx, **)
  @processor = processor
  super(**)
end

Instance Method Details

#callObject



22
# File 'lib/pennyworth/cli/actions/htmx/extension.rb', line 22

def call(*) = io.puts processor.call(settings.htmx_extensions_uri).to_json