README.md in ProtectedConstructor-1.0.4 vs README.md in ProtectedConstructor-1.0.5
- old
+ new
@@ -36,21 +36,21 @@
Klass.send(:new)
end
end
end
- Constructor is not protected.
+ # Constructor is protected.
klass = Klass.new NoMethodError
- Example using factory...
- klass = KlassFactory::create works
- klass.nil? false
- klass.is_a?(Klass) true
+ # Example using factory...
+ klass = KlassFactory::create # works
+ klass.nil? # false
+ klass.is_a?(Klass) # true
- Example just using send...
- klass = Klass.send(:new) works
- klass.nil? false
- klass.is_a?(Klass) true
+ # Example just using #send...
+ klass = Klass.send(:new) # works
+ klass.nil? # false
+ klass.is_a?(Klass) # true
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)