Sha256: 5be927ec7bb034312316f24d194d42d2d6918431df81a36640f4ea030592e693

Contents?: true

Size: 718 Bytes

Versions: 11

Compression:

Stored size: 718 Bytes

Contents

# frozen_string_literal: true

module UiBibz
  module Strategies
    # Class to initialize component
    class ComponentInitializeAbstractStrategy
      def initialize(component, component_binding)
        @component = component
        @binding = component_binding
        @content = component_binding.local_variable_get(:content)
        @options = component_binding.local_variable_get(:options)
        @html_options = component_binding.local_variable_get(:html_options)
        @block = component_binding.local_variable_get(:block)
      end

      def tapped?
        false
      end

      private

      def with_indifferent_access(hash)
        (hash || {}).with_indifferent_access
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ui_bibz-4.0.0.beta16 lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb
ui_bibz-4.0.0.beta15 lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb
ui_bibz-4.0.0.beta14 lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb
ui_bibz-4.0.0.beta13 lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb
ui_bibz-4.0.0.beta10 lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb
ui_bibz-4.0.0.beta9 lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb
ui_bibz-4.0.0.beta8 lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb
ui_bibz-4.0.0.beta7 lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb
ui_bibz-4.0.0.beta6 lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb
ui_bibz-4.0.0.beta4 lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb
ui_bibz-4.0.0.beta3 lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb