Class: Textus::Read::Boot

Inherits:
Object
  • Object
show all
Extended by:
Contract::DSL
Defined in:
lib/textus/read/boot.rb

Overview

Dispatched use case for the ‘boot` verb. The orientation envelope is built by the Textus::Boot library module; this class is the uniform (container:, call:) entry point that Dispatcher::VERBS resolves to. Boot is role-independent, so `call` is not consulted.

Instance Method Summary collapse

Methods included from Contract::DSL

arg, contract, contract?, response, summary, surfaces, verb

Constructor Details

#initialize(container:, call:) ⇒ Boot

Returns a new instance of Boot.



14
15
16
17
# File 'lib/textus/read/boot.rb', line 14

def initialize(container:, call:)
  @container = container
  @call      = call
end

Instance Method Details

#callObject



19
20
21
# File 'lib/textus/read/boot.rb', line 19

def call
  Textus::Boot.build(container: @container)
end