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-0.1.0 lib/voom/presenters/container_item.rb