ProtectedConstructor 2.0.0 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/spec/klass.rb DELETED
@@ -1,13 +0,0 @@
1
- require_relative '../lib/ProtectedConstructor'
2
-
3
- class Klass
4
- include ProtectedConstructor
5
-
6
- attr_reader :id
7
-
8
- # Protected
9
- def initialize(id)
10
- @id = id
11
- end
12
-
13
- end
@@ -1,10 +0,0 @@
1
- require 'klass'
2
-
3
- module KlassFactory
4
- class << self
5
- public
6
- def create(id)
7
- Klass.send(:new, id)
8
- end
9
- end
10
- end