Class: Pennyworth::CLI::Actions::HTMX::Reference

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

Overview

Handles references documentation action.

Instance Method Summary collapse

Constructor Details

#initialize(processor: Processor.for_htmx) ⇒ Reference

Returns a new instance of Reference.



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

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

Instance Method Details

#callObject



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

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