Sha256: 984bafd0a4765d441856797c2e4e0e30a23ce98b3fc01c57818b9340fc87cf18

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true

module Async::App::WebComponent
  def self.included(base)
    base.include(Async::App::Component)
    base.include(InstanceMethods)
  end

  module InstanceMethods
    def run! = bus.publish(Async::App::WebServer::APP_ADDED, self)

    def can_handle?(request) = raise NotImplementedError
    def call(*) = raise NotImplementedError
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
async-tools-0.2.10 lib/async/app/web_component.rb