Sha256: a9fbdff5b0ae813f33bf438659c7ce0e704d391d3db9409796be092323c2b7e6

Contents?: true

Size: 360 Bytes

Versions: 21

Compression:

Stored size: 360 Bytes

Contents

module Voom
  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

21 entries across 21 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/container_item.rb
voom-presenters-2.1.0 lib/voom/presenters/container_item.rb
voom-presenters-2.0.3 lib/voom/presenters/container_item.rb
voom-presenters-2.0.2 lib/voom/presenters/container_item.rb
voom-presenters-2.0.1 lib/voom/presenters/container_item.rb
voom-presenters-2.0.0 lib/voom/presenters/container_item.rb
voom-presenters-0.2.0 lib/voom/presenters/container_item.rb
voom-presenters-0.1.13 lib/voom/presenters/container_item.rb
voom-presenters-0.1.12 lib/voom/presenters/container_item.rb
voom-presenters-0.1.11 lib/voom/presenters/container_item.rb
voom-presenters-0.1.10 lib/voom/presenters/container_item.rb
voom-presenters-0.1.9 lib/voom/presenters/container_item.rb
voom-presenters-0.1.8 lib/voom/presenters/container_item.rb
voom-presenters-0.1.7 lib/voom/presenters/container_item.rb
voom-presenters-0.1.6 lib/voom/presenters/container_item.rb
voom-presenters-0.1.5 lib/voom/presenters/container_item.rb
voom-presenters-0.1.4 lib/voom/presenters/container_item.rb
voom-presenters-0.1.3 lib/voom/presenters/container_item.rb
voom-presenters-0.1.2 lib/voom/presenters/container_item.rb
voom-presenters-0.1.1 lib/voom/presenters/container_item.rb