Sha256: dbb9e861d230881c199554005db1d58d933e0c3f2243bcc20606d0b91c4564e2

Contents?: true

Size: 747 Bytes

Versions: 8

Compression:

Stored size: 747 Bytes

Contents

# frozen_string_literal: true

# @api public
# @since 0.1.0
module SmartCore::Types::System
  class << self
    # @param types [Array<SmartCore::Types::Pirmitive>]
    # @param type_definition [Block]
    # @return [SmartCore::Types::Primitive]
    #
    # @api public
    # @since 0.1.0
    def type_sum(*types, &type_definition)
      SmartCore::Types::Primitive::SumFactory.create_type(types, type_definition)
    end

    # @param types [Array<SmartCore::Types::Pirmitive>]
    # @param type_definition [Block]
    # @return [SmartCore::Types::Primitive]
    #
    # @api public
    # @since 0.1.0
    def type_mult(*types, &type_definition)
      SmartCore::Types::Primitive::MultFactory.create_type(types, type_definition)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
smart_types-0.8.0 lib/smart_core/types/system.rb
smart_types-0.7.1 lib/smart_core/types/system.rb
smart_types-0.7.0 lib/smart_core/types/system.rb
smart_types-0.6.0 lib/smart_core/types/system.rb
smart_types-0.4.0 lib/smart_core/types/system.rb
smart_types-0.3.0 lib/smart_core/types/system.rb
smart_types-0.2.0 lib/smart_core/types/system.rb
smart_types-0.1.0 lib/smart_core/types/system.rb