Sha256: e06403c9eef060a4d133a4f262ab917130c55f90bdc40fcda84efd3043c33dc8

Contents?: true

Size: 361 Bytes

Versions: 12

Compression:

Stored size: 361 Bytes

Contents

module Coprl
  module Presenters
    # Presenters are registered in the container with this class
    # You can replace this using the presenter container_item setting
    class ContainerItem
      def initialize(ui:)
        @ui = ui
      end

      # Resolves the ui to an instance that can be rendered
      def call
        @ui
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 lib/coprl/presenters/container_item.rb
coprl-3.0.0.beta.11 lib/coprl/presenters/container_item.rb
coprl-3.0.0.beta.10 lib/coprl/presenters/container_item.rb
coprl-3.0.0.beta.9 lib/coprl/presenters/container_item.rb
coprl-3.0.0.beta.8 lib/coprl/presenters/container_item.rb
coprl-3.0.0.beta.7 lib/coprl/presenters/container_item.rb
coprl-3.0.0.beta.6 lib/coprl/presenters/container_item.rb
coprl-3.0.0.beta.5 lib/coprl/presenters/container_item.rb
coprl-3.0.0.beta.4 lib/coprl/presenters/container_item.rb
coprl-3.0.0.beta.3 lib/coprl/presenters/container_item.rb
coprl-3.0.0.beta.2 lib/coprl/presenters/container_item.rb
coprl-3.0.0.beta.1 lib/coprl/presenters/container_item.rb