rattributes 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -0
  3. data/lib/rattributes.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82600854fd92659f426e29d9f2c5d3667923503f
4
- data.tar.gz: 79893c0f31d46ac18f9a34982dd9c89e90f84cd1
3
+ metadata.gz: 231414e5868296a01634c8655316ad4c2ae7cc80
4
+ data.tar.gz: 79b96989c49bcec032b64802a66dbc8795c57174
5
5
  SHA512:
6
- metadata.gz: ec2a094d069d420a1b8be17b2864736aaf3d138e373452e902fb428af0a2661e37ff13c8a9a65def7a9c3f41212acd5cd28ef23eac1d143b448a6f844be34753
7
- data.tar.gz: 67bc4bcb1a7c2e4d20591477d1ad23ee88af54065118ce299fe3c870acf4d62b9727385ed0dd440536afa3083b422eeb1352cdb679dec924a7cd55eb76010896
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
 
@@ -1,6 +1,6 @@
1
1
  class Rattributes < Module
2
2
 
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
 
5
5
  def initialize(*attributes)
6
6
  @attributes = attributes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rattributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Martin