Sha256: 2b832a30aa6e97e76738b66b4413f29c16fd6fa523119e46129181cbd86482d7

Contents?: true

Size: 1.11 KB

Versions: 8

Compression:

Stored size: 1.11 KB

Contents

module React
  module ReduxComponent
    module API
      def self.included(base)
        base.instance_exec do
          attr_accessor :app_store
          attr_accessor :class_store
          attr_accessor :store

          def default_app_store_defined
            @default_app_store_defined
          end

          def default_class_store_defined
            @default_class_store_defined
          end

          def default_instance_store_defined
            @default_instance_store_defined
          end

          def app_store
            @default_app_store_defined = true
            @default_app_store ||= ::React::ReduxComponent::AppStoreDefaults.new(state, self.to_s)
          end

          def class_store
            @default_class_store_defined = true
            @default_class_store ||= ::React::ReduxComponent::ComponentClassStoreDefaults.new(state, self.to_s)
          end

          def store
            @default_instance_store_defined = true
            @default_instance_store ||= ::React::ReduxComponent::ComponentInstanceStoreDefaults.new(state, self.to_s)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
isomorfeus-react-16.8.9 lib/react/redux_component/api.rb
isomorfeus-react-16.8.8 lib/react/redux_component/api.rb
isomorfeus-react-16.8.7 lib/react/redux_component/api.rb
isomorfeus-react-16.8.6 lib/react/redux_component/api.rb
isomorfeus-react-16.8.5 lib/react/redux_component/api.rb
isomorfeus-react-16.8.4 lib/react/redux_component/api.rb
isomorfeus-react-16.8.3 lib/react/redux_component/api.rb
isomorfeus-react-16.8.2 lib/react/redux_component/api.rb