accessory 0.1.1 → 0.1.2
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8065ca0c8cb368dc5a7e0a6f11b4d582a2448a0255590a6aa4ae557c62c321f
|
|
4
|
+
data.tar.gz: 2854d2fc74ffa690a95f0ad9db698497f037b2a7b74e4ceae9a380ba89796b7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 274e4559b3d8e4a788b0f23c7831bfe5dbc1ada32dddb82a21ba0bcff9097ec7c04aa0d82af746e22f959dc7c336f2473c5ade8445f0035d704a64e218681e7a
|
|
7
|
+
data.tar.gz: 6320c7cc7a436ef043d6993d33b68ad56f4e1e30e0bd37b03b110d067f55ebc3c03aec7a4e14602d0c64d9bea15625069b5da34e9d8d13f5c4e92db8557c243c
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
require 'accessory/accessor'
|
|
2
2
|
|
|
3
|
-
class Accessory::
|
|
4
|
-
def initialize(
|
|
3
|
+
class Accessory::AttributeAccessor < Accessory::Accessor
|
|
4
|
+
def initialize(attr_name, **kwargs)
|
|
5
5
|
super(**kwargs)
|
|
6
|
-
@getter_method_name = :"#{
|
|
7
|
-
@setter_method_name = :"#{
|
|
6
|
+
@getter_method_name = :"#{attr_name}"
|
|
7
|
+
@setter_method_name = :"#{attr_name}="
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def inspect_args
|
data/lib/accessory/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: accessory
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Levi Aul
|
|
@@ -21,9 +21,9 @@ files:
|
|
|
21
21
|
- lib/accessory/access.rb
|
|
22
22
|
- lib/accessory/accessor.rb
|
|
23
23
|
- lib/accessory/accessors/all_accessor.rb
|
|
24
|
+
- lib/accessory/accessors/attribute_accessor.rb
|
|
24
25
|
- lib/accessory/accessors/between_each_accessor.rb
|
|
25
26
|
- lib/accessory/accessors/betwixt_accessor.rb
|
|
26
|
-
- lib/accessory/accessors/field_accessor.rb
|
|
27
27
|
- lib/accessory/accessors/filter_accessor.rb
|
|
28
28
|
- lib/accessory/accessors/first_accessor.rb
|
|
29
29
|
- lib/accessory/accessors/instance_variable_accessor.rb
|