rattributes 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/rattributes.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 231414e5868296a01634c8655316ad4c2ae7cc80
|
4
|
+
data.tar.gz: 79b96989c49bcec032b64802a66dbc8795c57174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8ace0cbc61f4255a3d0ca8da38a022bb0c2416e01ed6016a3c938cdeab798b243d04ca5756668e99cff293b2f10dd6aba26085b896101206d89ffce49ad6001
|
7
|
+
data.tar.gz: 79f565ebad7fc76d8e75dbcde61ae96075846030582a5f530dd2837f50673ce52ab2c0a859c9f7ab01370fba3775f9c2181a168cde67e92819bab5187e136372
|
data/README.md
CHANGED
@@ -34,9 +34,16 @@ Or install it yourself as:
|
|
34
34
|
## Usage
|
35
35
|
|
36
36
|
```ruby
|
37
|
+
require 'rattributes'
|
38
|
+
|
37
39
|
class Car
|
38
40
|
include Rattributes.new(:engine, :brakes)
|
39
41
|
end
|
42
|
+
|
43
|
+
car = Car.new(engine: 'an engine', brakes: 'the brakes')
|
44
|
+
|
45
|
+
car.engine # 'an engine'
|
46
|
+
car.brakes # 'the brakes'
|
40
47
|
```
|
41
48
|
|
42
49
|
|
data/lib/rattributes.rb
CHANGED