Sha256: 7e0fa900c58cc752517a2a0e11c1de8363081f8e5f1970f1715d489b5133d1d3

Contents?: true

Size: 127 Bytes

Versions: 7

Compression:

Stored size: 127 Bytes

Contents

require 'klass'

module KlassFactory
  class << self
    public
    def create(id)
      Klass.send(:new, id)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ProtectedConstructor-2.0.0 spec/klass_factory.rb
ProtectedConstructor-1.0.5 spec/klass_factory.rb
ProtectedConstructor-1.0.4 spec/klass_factory.rb
ProtectedConstructor-1.0.3 spec/klass_factory.rb
ProtectedConstructor-1.0.2 spec/klass_factory.rb
ProtectedConstructor-1.0.1 spec/klass_factory.rb
ProtectedConstructor-1.0.0 spec/klass_factory.rb