README.md in private_attr-1.0.0 vs README.md in private_attr-1.1.0
- old
+ new
@@ -15,12 +15,13 @@
attr_accessor :bar
end
```
-But, I really like to declare my attribute readers and writers near the
-top of my classes, which means I sometimes use something like:
+Unfortunately, this makes Ruby show a ‘private attribute?’ warning.
+Also, I really like to declare my attribute readers and writers near
+the top of my classes, which means I sometimes use something like:
```ruby
class Bar
attr_accessor :foo
private :foo, :foo=
@@ -76,9 +77,13 @@
def initialize foo
self.foo = foo
end
end
```
+
+If you don’t want to extend all of your modules and classes
+separately you can also `require 'private_attr/everywhere'`
+and the methods will be available everywhere.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)