scoped_attr_accessor 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scoped_attr_accessor.rb +4 -4
- data/lib/scoped_attr_accessor/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92d2d8660b78d0b456ca4b89038a7ec136219714
|
4
|
+
data.tar.gz: e029b4c67ba28ba54369c972d176e15862738bb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebd6b86f44a68fa2e62a5a8ac2a72cb5911b76b438b69c38760442a0039ad1b2a8f643eded30fd6ac95f556614bbfd88842201bb7967e676fb7fe472cb751fad
|
7
|
+
data.tar.gz: 6abb842e76bb1ddce267933d2ee1e6a1cd0fe7bc6896056e90691014f8fce7c7656c8ca220c837cf37899b4511951e9a9cc588c8434ae47dbb88895ee4344555
|
data/lib/scoped_attr_accessor.rb
CHANGED
@@ -16,12 +16,12 @@
|
|
16
16
|
module ScopedAttrAccessor
|
17
17
|
def private_attr_reader(*names)
|
18
18
|
attr_reader(*names)
|
19
|
-
names
|
19
|
+
private(*names)
|
20
20
|
end
|
21
21
|
|
22
22
|
def private_attr_writer(*names)
|
23
23
|
attr_writer(*names)
|
24
|
-
names.
|
24
|
+
private(*names.map {|name| "#{name}="})
|
25
25
|
end
|
26
26
|
|
27
27
|
def private_attr_accessor(*names)
|
@@ -31,12 +31,12 @@ module ScopedAttrAccessor
|
|
31
31
|
|
32
32
|
def protected_attr_reader(*names)
|
33
33
|
attr_reader(*names)
|
34
|
-
names
|
34
|
+
protected(*names)
|
35
35
|
end
|
36
36
|
|
37
37
|
def protected_attr_writer(*names)
|
38
38
|
attr_writer(*names)
|
39
|
-
names.
|
39
|
+
protected(*names.map {|name| "#{name}="})
|
40
40
|
end
|
41
41
|
|
42
42
|
def protected_attr_accessor(*names)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scoped_attr_accessor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Brady
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.0.
|
110
|
+
rubygems_version: 2.0.3
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Adds private_* and protected_* attr_reader, attr_writer, and attr_accessor
|