Sha256: 43650356bd35c1dfc4dde4380dbe23f6c985a6ed37dfcadd7845c84b40f91739

Contents?: true

Size: 635 Bytes

Versions: 8

Compression:

Stored size: 635 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Common
    module Plugins
      module HasConstructorWithoutInitialize
        module Concern
          include Support::Concern

          class_methods do
            ##
            # @return [Object]
            # @since 0.2.0
            #
            # @internal
            #   - https://ruby-doc.org/core-2.5.0/Class.html#method-i-allocate
            #   - https://frontdeveloper.pl/2018/11/ruby-allocate-method/
            #
            def create_without_initialize
              allocate
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
convenient_service-0.7.0 lib/convenient_service/common/plugins/has_constructor_without_initialize/concern.rb
convenient_service-0.6.0 lib/convenient_service/common/plugins/has_constructor_without_initialize/concern.rb
convenient_service-0.5.0 lib/convenient_service/common/plugins/has_constructor_without_initialize/concern.rb
convenient_service-0.4.0 lib/convenient_service/common/plugins/has_constructor_without_initialize/concern.rb
convenient_service-0.3.1 lib/convenient_service/common/plugins/has_constructor_without_initialize/concern.rb
convenient_service-0.3.0 lib/convenient_service/common/plugins/has_constructor_without_initialize/concern.rb
convenient_service-0.2.1 lib/convenient_service/common/plugins/has_constructor_without_initialize/concern.rb
convenient_service-0.2.0 lib/convenient_service/common/plugins/has_constructor_without_initialize/concern.rb